> For the complete documentation index, see [llms.txt](https://teamxdevelopers.gitbook.io/superchat_doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teamxdevelopers.gitbook.io/superchat_doc/get-started/setup-and-importing-android-studio-project.md).

# Setup & Importing Android Studio Project

{% hint style="warning" %}

### Please do not run project before complete all steps in documentation

{% endhint %}

### What Android Studio version is needed?

Latest Android Studio version is recommended, which can be downloaded from [here](https://developer.android.com/studio/)

### How to open the project in Android Studio?

1. Open Android Studio > Open an existing Android Studio Project >Choose the folder `SuperChat_Code` > OK
2. wait for 'gradle build' to finish
3. Then go to 'Build' Menu and choose Clean Project

> after build finishes you will get an error `google-services.json` is missing ,to solve this you have to [Setup Firebase](/superchat_doc/get-started/setting-up-firebase.md) after changing Package Name

### How to change the package name?

go to `build.gradle` and change `applicationId` value then click 'Sync Now' at the top

![image](https://content.gitbook.com/content/4Rlkk5VG6grUnCbjbisd/blobs/DuzFqK29bgBSG1Qd4GPm/Frame%207\(1\).png)

### How to change app name?

go to `build.gradle` and change `app_name` value, also you might want to change `app_folder_name` value to change the actual folder name in the Phone then click 'Sync Now' at the top

### How to Configure Encryption?

* **AES Encryption:**

go to `build.gradle` and change `encryption_type` value to `AES` hen click 'Sync Now' at the top

now go to `src/main/java/com/teamxdevelopers/SuperChat/utils/enc/aes/AESCrypto.java` and change the `KEY` value to a unique and strong key. this will be used to Encrypt ALL messages so make sure to NOT share it with anyone.

* **if you don't need to use encryption at all, go to `build.gradle` and change `encryption_type` value to `NONE` hen click 'Sync Now' at the top**

### How to enable/disable Ad?

1. Enable Ads from admin panel.
2. Fill in the units IDs:
   * copy you adMob AppId and paste it in `admob_app_id`
   * create 2 Banner Units and one Interstitial Ad in AdMob and paste them individually in `banner_unit_id_new_chat` , `banner_unit_id_main` and `interstitial_ad_id` lastly click 'Sync Now' at the top.

### How to change group and account link domain?

you can do that by going to `build.gradle` and change `group_invite_host , account_link` value to your domain's website, then click 'Sync Now' at the top

### How to change Links in About Page?

you can do that by going to `build.gradle` and change your\_company\_name , fb\_account , yt\_account , website , email , encriptionWeb , helpWeb values to what you want , then click 'Sync Now' at the top

### How to add more stickers?

if you want to add your own stickers go to `app\src\main\assets\stickers` and paste all stickers images in this folder (should be in `png` or `jpg`)

### How to change app icon?

in Android Studio on the left panel select app folder > right click > new > Image Asset > make sure Launcher Icons(Adaptive and Legacy) is selected choose your asset, adjust background color if needed > next > finish

![image](https://content.gitbook.com/content/4Rlkk5VG6grUnCbjbisd/blobs/zqBoirN8IlCx9y4x1X6t/Screenshot%20from%202023-08-04%2019-32-37.png)
