> For the complete documentation index, see [llms.txt](https://gamety-in.gitbook.io/contest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gamety-in.gitbook.io/contest/master.md).

# android side changes

## How to change app Name?

This is a simple thing in Android Studio,

go to: res folder -> values -> strings.xml

change the app\_name (in the bellow example:MitsuhoSdn Bhd) to any new name you want.

```
<string name="app_name">MitsuhoSdn Bhd</string>
<string name="hello_world">Hello world!</string>
<string name="menu_settings">Settings</string>
```

[Click Here To Know More](https://stackoverflow.com/a/14216822)

## How to change Package name?

&#x20;From the Android Studio click over the gear icon ( ![Gears icon](https://i.stack.imgur.com/lkezT.png) ) and then select the option: `"Compact Empty Middle Packages"`, to see the folders separated in a tree view.

![](/files/-MdxYFZ0H_pk1O9BeX1a)

&#x20;Now select the folder, click right button to open the contextual menu, select **`Refactor`** and then  **`Rename`**

![](/files/-MdxYAk4zhAitCgO5I2N)

You will be advised to refactor the package:

![](/files/-MdxY6-bFZ_MtpLnsMjl)

&#x20;Then a window will show the coincidences inside the proyect, select **`"Do Refactor"`**

![](/files/-MdxXzHRy8_koQWwP6kQ)

> &#x20;**We don´t have to change manually the AndroidManifest.xml or build.gradle files, Refactoring the package will do the job!.**

[Click Here To Know More](https://stackoverflow.com/a/39520618)

## How to change Google Login Details?

#### Creating an Android Project

* Open Android Studio (Here I am using Android Studio 3.0). And you need to create a project with an **Empty Activity**. I created a project named GoogleLoginExample.
* Once your project is loaded then click on **Tools->firebase**&#x20;

![Google Login Android](https://cdn.shortpixel.ai/client/to_avif,q_glossy,ret_img,w_187,h_180/https://www.simplifiedcoding.net/wp-content/uploads/2015/11/Google-Login-Android.png)

* Then you will see a new window on the right. Here you need to select Authentication.

![Google Login Android using Firebase](https://cdn.shortpixel.ai/client/to_avif,q_glossy,ret_img,w_437,h_484/https://www.simplifiedcoding.net/wp-content/uploads/2015/11/Google-Login-Android-using-Firebase.png)

* Now you need to connect to firebase. It will again open a window, and from this window, you can create a new Firebase Project, or if you want you can also choose an existing one.

![Connecting to Firebase](https://cdn.shortpixel.ai/client/to_avif,q_glossy,ret_img,w_436,h_273/https://www.simplifiedcoding.net/wp-content/uploads/2015/11/Connecting-to-Firebase.png)

* After connecting to Firebase, click on Add Authentication and accept the changes. It will add all the required dependencies.

#### Enabling Google Login in Firebase Console

* If we want to use Google Login with Firebase, then we also need to enable it in the Firebase Console (Default disables it).
* To enable it, go to Firebase Console **(console.firebase.google.com).** Then from the right, select Authentication, then select **SIGN-IN METHOD**, and here you need to allow Google Option. (See the image below it is disabled, and you need to enable it).

![Enable Google Sign In](https://cdn.shortpixel.ai/client/to_avif,q_glossy,ret_img,w_971,h_285/https://www.simplifiedcoding.net/wp-content/uploads/2015/11/Enable-Google-Sign-In.png)

[Click Here To Kno](https://www.simplifiedcoding.net/google-login-android/)[w More](https://www.simplifiedcoding.net/google-login-android/)

## How to change Logo?

Here are my steps for the task:

1. Create [PNG](https://en.wikipedia.org/wiki/Portable_Network_Graphics) image file of size *512x512* pixels
2. In [Android Studio](https://developer.android.com/studio/index.html), in **project view**, **highlight** a *mipmap directory*
3. In menu, **go** to *File>New>Image Asset*
4. **Click** *Image Button* in *Asset type* button row
5. **Click** on *3 Dot Box* at right of *Path Box*.
6. **Drag** image to *source asset box*
7. **Click** *Next* (Note: **Existing launcher files** will be **overwritten**)
8. **Click** *Finish*

[*Click here more info*](https://stackoverflow.com/a/41518027)

## How to change API, Rozerpay API & Onesignal API From Build Gradle (AppLevel)

![](/files/-Mdx_WF14aZQh5dm5xvR)

01\. Change Your Base API URL &#x20;

02\. Change App Token and (Admin Side - [Setting.php](/contest/admin-side-changes.md#setting-php));

03\. Replace your Keyid (razerpay)

04\. Replace your SecretCode (Rozerpay);

05\. Replace OneSignal App id;
