Native Android

Android Pregnancy Exercise and workout app

Exercise during pregnancy helps you to prepare for labor and delivery with our workout programs with safe exercises routines on a daily basis and add some light stretching for flexibility For example exercises yoga and other relaxation techniques to do during pregnancy will calm your mind and help to the right fetal development and child growth.

Exercise during pregnancy helps you to prepare for labor and delivery with our workout programs with safe exercises routines on a daily basis and add some light stretching for flexibility For example exercises yoga and other relaxation techniques to do during pregnancy will calm your mind and help to the right fetal development and child growth.

Documentation:

Rename Package:

Open Android Studio

Open the project using one of the following methods, (see Figure 1, 2, 3)

n your project pane, click on the little gear icon

Uncheck / De-select the Compact Empty Middle Packages option

Your package directory will be broken into individual directories now. Individually select each directory you want to rename

Right-click on it

Select Refactor

Click on Rename


In the Pop-up dialog, click on Rename Package

Enter the new name and hit Refactor

Click Do Refactor at the bottom and allow a minute to let Android Studio update all changes

Note: While renaming com in Android Studio, it might give you a warning. In such case, select Rename All.

Open your AndroidManifest.xml file. Change the package to your new package name under the manifest tag.


Now open your build.gradle (app) file. Update the applicationId to your new package name and sync gradle.


Open values-> strings.xml file.

Rename the item file_provider_authority similar to your new package name

Clean and rebuild

Done

Change App Logo:

Right-click on the res folder.

Click on the New, then Image Asset.

Select Launcher IconsIcons (Adaptive and Legacy) and set Foreground Layer, Background Layer.

Click on Next

Click on Finish. Done.

Change App Name.

To change Application name go to the values > strings.xml file

Change the app_name item.

Change App Color:

Go to the values > colors.xml file

Change the colorPrimary, colorPrimaryDark, colorAccent item values

Add Admob:

Login with your Gmail account

Go to this link

From Apps option create App
If your app is in play store then select YES otherwise NO

Then provide app information and click ADD


Then you will get an App ID. Save it at values > string.xml file. You will need it later.

Then click on CREATE AD UNIT and you will find three ad types. Only Banner and Interstitial types will be used here

Select Banner type. Provide Ad unit name and click on CREATE AD UNIT.

Copy Banner Ad unit id and save it .You will need it later.

Then again go back to Ad types and select Interstitial Ad type. Provide Ad unit name and select CREATE AD UNIT.

Copy the Interstitial ad unit id and save it. You will need it later.

Now get saved Admob Banner and Interstitial Ad unit id. Then go to res > values > strings.xml file in Android Studio. Put them to admob_test_banner_ad_unit_id, admob_test_interstitial_ad_unit_id items.

Now Done.

Click Below link to Download the Source Code

Download

2 Comments

Leave a Comment