# 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](https://teamxdevelopers.gitbook.io/superchat_doc/get-started/setting-up-firebase) 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teamxdevelopers.gitbook.io/superchat_doc/get-started/setup-and-importing-android-studio-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
