Android App Customization

Android Project Configuration

Learn how to modify the application packaging, logo design, Firebase API configurations, endpoints, and Google AdMob settings.

1

Change the Application Logo

To replace the default launcher icon and visual branding logo inside the app:

  1. Design a custom square logo (PNG format, recommended size 512x512 px).
  2. Rename the file to app_logo.png.
  3. Paste and overwrite the logo file inside the directory:
    Android App/app/src/main/res/drawable/app_logo.png
  4. The app main manifest automatically links to this resource using standard tags:
    android:icon="@drawable/app_logo"
Logo Change Location Diagram
Replacement structure of drawable assets
2

Change Package Name (Application ID)

The Application ID acts as the unique identifier for your app on the Google Play Store. It is configured in the application-level Gradle settings:

  1. Open the file: Android App/app/build.gradle.kts
  2. Locate the applicationId line inside defaultConfig:
build.gradle.kts (Lines 14-22)
defaultConfig { applicationId = "com.snapreels.devsnaplix" // Replace with your unique package name minSdk = 24 targetSdk = 36 versionCode = 1 versionName = "1.0.0" }

3. Update the package name string to your custom store package ID (e.g. "com.yourname.snapreels").

4. To refactor package structures inside Android Studio: Select target Java packages directory folders, right click and choose Refactor -> Rename -> Rename Package.

Package Renaming Process
Locating Application ID inside Gradle Configs
3

Configure Firebase Console & Setup file

To enable authentication, login mechanisms, and notifications, you must link Firebase Services:

  1. Go to the Firebase Console and add a new Android Project.
  2. Enter the exact package name (Application ID) configured in Step 2.
  3. Register the app and download the configuration file: google-services.json.
  4. Drag and paste the downloaded file directly inside your app folder:
    Android App/app/google-services.json
Firebase Configuration File Location
Placing google-services.json inside the app module directory
4

Configure API URL & Security Keys

The Android app interacts with your server database via API calls. Update your app configuration values here:

  1. Open the configuration file: Android App/app/src/main/java/com/example/data/AppConfig.kt
  2. Replace the endpoints and secrets to match your live production website server:
AppConfig.kt
package com.example.data object AppConfig { // Replace with your Production URL (e.g. https://yourdomain.com/api/mobile/v1) const val API_URL = "https://snapreels.gadohost.com/api/mobile/v1" // Replace with your secret security token const val API_KEY = "snap_apk_8ac0381c8c2e399b87494dd5ac4cfbc2420e1aced6c361a4" }
API endpoint customization
Editing API Server values inside AppConfig.kt
5

Configure Google AdMob Ads

To display advertisements in your mobile app, configure your primary Google AdMob App ID inside the manifest properties:

  1. Open the file: Android App/app/src/main/AndroidManifest.xml
  2. Scroll down inside the <application> element to locate the AdMob metadata tags:
AndroidManifest.xml (Lines 18-20)
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3940256099942544~3347511713" /> <!-- Replace value with AdMob App ID -->

3. Replace the test application ID value (ca-app-pub-3940256099942544~3347511713) with your live production AdMob Application ID.

⚠️

Important Notice for Ad Units

Do not hardcode individual ad unit IDs (Banner, Reward, Interstitial) in the source code. You can configure them dynamically in the online Admin Panel under Mobile Application Settings once your server is live.

AdMob configuration in manifest
Setting AdMob metadata values inside AndroidManifest.xml