1. To change the App Name:
Change your app name in string.xml file
app/src/main/res/values/strings.xml --> app_name
2. To change App icon:
Change app icon (ic_launcher) in all app/src/main/res/res/mipmap folders. For that do below steps
Reference link
https://developer.android.com/studio/write/image-asset-studio#access
3. To Change App Logo:
Change app logo (logo_image.png) in all mipmap folders under app/src/main/res.
4. To Change Package name:
Follow below link to change package name
https://stackoverflow.com/questions/16804093/rename-package-in-android-studio
5. To Change App theme colors:
Change your app color in colors.xml file under app/src/main/res/values folder.
Place color code in ColorPrimary, ColorPrimaryDark and ColorAccent
<color name="colorPrimary">#03a897</color>
<color name="colorPrimaryDark">#03a897</color>
<color name="colorAccent">#02599D</color>
6. To Change Domain Name & value key:
Change domain name and key in Appconstatants.java file under app/src/main/java/<package>/Common folder
public static String value = "<key_generated>";
public static String domain = "<domain_name>/";
7. Change icons:
Provide color code and get your app themed icons from the design person and replace that in mipmap(hdpi) folder if you want to change the pink icons to your theme color.
8. Facebook id change:
a. Add below line in Splash activity ,replace your package name and run app and get hash key log
try {
PackageInfo info = getPackageManager().getPackageInfo(“YOUR_PACKAGE NAME", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md;
md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
String hashkey= new String(Base64.encode(md.digest(), 0));
Log.e("hash key", hashkey);
}
} catch (PackageManager.NameNotFoundException e1) {
Log.e("name not found", e1.toString());
} catch (NoSuchAlgorithmException e) {
Log.e("no such an algorithm", e.toString());
} catch (Exception e) {
Log.e("exception", e.toString());
}
b. Copy the hash key from logcat and save for your Facebook account creation
c. follow the procedure to create app in Facebook https://developers.facebook.com/docs/facebook-login/android and add the hash key there. It will return the app id
d. Place that facebook app id in facebook_app_id and fb_login_protocol_scheme String.xml file . in fb_login_protocol_scheme append “fb” with facebook_app_id.
<string name="facebook_app_id">your facebook id</string>
<string name="fb_login_protocol_scheme">fb{your facebook id}</string>
9.One signal id change
a. Provide your app package name and Get Onesignal id
Reference link to get one signal id
https://documentation.onesignal.com/docs/generate-a-google-server-api-key
b. Place that id in app build.gradle
manifestPlaceholders = [
onesignal_app_id : 'YOUR_ONESIGNAL_ID',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'REMOTE'
]
10. Firebase Google service JSON file change
https://support.google.com/firebase/answer/7015592?hl=en
a. In this above link you can see the procedure to get google service json file under Get config file for your Android app topic.
b. After download, the google service JSON key, paste that file in your project app folder
11. Generate Apk with new Keystore
https://developer.android.com/studio/publish/app-signing#sign-apk
12. Play store upload:
https://support.google.com/googleplay/android-developer/answer/113469?hl=en follow this link to upload your app to playstore.
If you require our launching support kindly raise ticket at support.iamretailer.com