-->

reskin code android book app.

 

Which Android Studio version is needed?

Latest Android Studio version is recommended, which can be downloaded from here:
http://developer.android.com/intl/es/sdk/index.html



How to open the project in Android Studio?

  1. Open Android Studio > Open an Existing Android Studio Project > Select Your Project build.gradle file > ok
  2. Select Project

How to change the package name?

You can change it easily from Android Studio. Here are the steps: You can change it easily from Android Studio. Here are the steps:

  1. In the Project pane, click on the little gear icon.Uncheck/Deselect the Compact Empty Middle Packages option.
  2. Your package directory will now be broken up in individual directories.
  3. Individually select each directory you want to rename, and: Right-click itSelect RefactorClick on RenameIn the Pop-up dialog.
  4. Click on Rename Package instead of Rename Directory Enter the new name and hit RefactorAllow a minute to let Android Studio update all changes.
  5. Now open your build.gradle (Usually 'app' or 'mobile'). Update the applicationId to your Package Name and Sync Gradle, if it hasn't already been updated automatically.

  6. Note: When renaming com in Android Studio, it might give a warning. In such case, selectRename All.



How to change app name?

    1. Open Android Studio > Books4u > res > values > strings.xml
    2. Enter your app name inside "app_name" string tag:
      <string name="app_name">Books4u</string>
    3. If you want to change text or either its language , it would also change from string.xml file



How to change Firebase Credentials for Dynamic link?

You can change it easily . Here are the steps:

  1. Login in Firebase , create the project with required name.
  2. After creating project , you have to select "Android" then you have to add App Credentials
  3. Add "App package name" , "App name" & debug SHA-1 key (How to find debug SHA-1 key)
  4. After adding all above information , you have to download "google-service.json" file by clicking on "Download Google Serfice file:
  5. Copy/paste the downloaded file into root folder of project , it's path would be "comnews/app"
  6. Write your "Url Hostname" in build.gradle (app) in front of hostName in manifestPlaceHolder For example your url is "http://www.your_website.com/" then "www.your_website.com" is your hostName , check out screenshot

  7. Note: When you publish the app to playstore , you must have to submit publishing apk "SHA-1" & "SHA-2" keys in Firebase After publishing , go to Release Management by selecting specific app then click "App Signing" option. You would have to copy "SHA-1" , "SHA-2" keys from the "App Signing Certificate".

    Go to Firebase and open project settings , you have to select "General" tab.Now you can add these keys by clicking Add Fingerprint button. Check out the last screenshots , it would clear everything



Note : You have to follow below 2 screenshots after the publishing of app at playstore.




How to change AdMob id?

  1. Open Admin panel & click dashboard , it would enable you to configure admob keys
  2. Sign into your AdMob account.
  3. Create a new App by giving the package name of the app you want to integrate AdMob. Once the App is created, you can find the APP ID on the dashboard which looks like ca-app-pub-XXXXXXXXX~XXXXXXXXX
  4. Select the ad format and give the ad unit a name
  5. Once the ad unit is created, you can notice the Ad unit ID on the dashboard. An example of ad unit id look like ca-app-pub-10XXXXXXXX/XXXXXXXXXXX
  6. Add "Publisher Id" in publisher id text field
  7. Add "Privacy Url" into publisher url in text field



Where to Change Colors?

    1. Open Android Studio > Books4u > res > values > colors.xml
    2. Open colors.xml
    3. You can changes the colours


How & Where to Change Serverl Url ?

    1. Select Project > go to com.haris.books4u.ConstantUtil package > Constant.java
    2. Enter your Server Url inside "BASE_URL"
      public static String BASE_URL="YOUR_SERVER_URL"
    3. Your BASE_URL would be like "http://www.example.com"

How to configure Facebook Login?

  1. Go to "Firebase Console" in "Authencation" section and enable Facebook Login and add the Name & Email
  2. Go to "facebook Developer" the link is given developers.facebook.com and Create a new app
  3. Then Go in Setting > Basic Fill privacy policy and application nature/cateogry and press save
  4. Then Go in Setting > Basic Add development palatform
  5. Then Go in Setting > Basic > development palatform Select Android
  6. Got to ConstantUtil -> Constant.java and find 'isFacebookHashKeyRequired' make it to 'true'
  7. Then Run the project and copy the Hash key from Logcat just like shown in picture
  8. Copy & paste App package name , Default class name path & hash key in Facebook developer just like shown in picture
  9. Then Go in Setting > Basic > development palatform Select Android
  10. Select 'Use this Package name' & make the app public
  11. Then Go in Setting > Basic > development palatform Select Android
  12. Copy app id & paste in string.xml file in "facebook_app_id" , check out picture
  13. Now copy & paste app id , app secret in Firebase Authentication section
  14. Go to Product -> Facebook Login -> Settings & paste the OAUTH redirect url , check out picture
  15. Check out picture section for further clearance.

  16. Note: After publishing , go to Release Management by selecting specific app then click "App Signing" option. You would have to copy "SHA-1" keys from the "App Signing Certificate"

    Go to link which is given tomeko.net and just paste the SHA - 1 key and click "Convert button" , it would give you HASH key now you have to enter that HASH KEY into Facebook -> Setting - > Hash key field -> Save project



How to configure Google Login?

  1. Go to "Firebase Console" in "Authencation" section and enable Google Login and add the Name & Email
  2. Go to "Google Login" the link is given Google Login Integration and select project as well as add your email along with Sha -1 keys How to generate Debug SHA-1 key
  3. Follow screenshot for further assistant

  4. Note: When you publish the app to playstore , you must have to submit publishing apk "SHA-1" keys in "Google Login" just you add it right now for debug sha-1 keys


How to change 'Splash Screen and Application Icon?

How To Change Application Icon

  1. Open Android Studio > app > res > drawable folder > app_icon.png
  2. Rename your icon with app_icon.png and paste in drawable folder

How To Change Splash Screen
  1. Open Android Studio > app > res > drawable > bg_home.png
  2. Rename your splash screen image with bg_home.png and paste in drawable folder

How to Change One Signal Notification App Id in Application?

Get your Google Server API key and project number.
https://documentation.onesignal.com/docs/generate-a-google-server-api-key

How to Change One Signal App Id And Sender Id

  1. Open Android Studio > App > build.gradle (Module:app)
  2. Enter your Onesignal App id inside"onesignal_app_id"
    onesignal_app_id ="Your onesignal_app_id"


Change App all graphics

You will find all image into /res/drawable-mdpi/,/res/drawable-hdpi/,/res/drawable-xhdpi/ folder. Just create your own graphics and replace those files. Create seperate graphics of different device screen sizes & place them into other drawble folders (drawable-hdpi & drawable-xhdpi) with same file name found at drawable-mdpi folder. Check here for more information: Devices and Displays & Supporting Multiple Screens.


Berlangganan update artikel terbaru via email:

0 Response to "reskin code android book app."

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel