Note :- You have to add all ids (Admob App ID, Facebook App ID, Onesignal App ID) in your android code before you run your project. If you dont add, app might crash.

HD Wallpaper

Created:- 24 Jan 2023
Company:- Viavi Webtech - India
Contact:- Codecanyon Profile

Thank you for purchasing the app. If you have any questions that are beyond the scope of this help file, please feel free to message me via my user page contact form Here. Thanks so much!


Which Android Studio version is needed?

Recommended Android Studio Chipmunk | 2021.2.1 Patch 1, you can download archive from here:
https://developer.android.com/studio/archive

Latest Android Studio version can be downloaded from here:
http://developer.android.com/intl/en/sdk/index.html



How to Open The Project in Android Studio?

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

How to change the package name?

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

  • In the Project pane, click on the little gear icon. Uncheck/Deselect the Compact Empty Middle Packages option.
  • Your package directory will now be broken up in individual directories.
  • Individually select each directory you want to rename, and: Right-click it. Select Refactor. Click on Rename in the Pop-up dialog.
  • Click on Rename Package instead of Rename Directory Enter the new name and hit Refactor and allow a minute to let Android Studio update all changes.
  • 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.

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


How to change app name?

  • Open Android Studio > HD Wallpaper> res > values > strings.xml
  • Enter your app name inside "app_name" string tag:
    <string name="app_name">HD Wallpaper</string>

How to generate and replace google-service.json?

Open https://console.firebase.google.com

Create New Project

Download google-service.json file and replace

Now generate SHA1 key

Another method to generate SHA1 key

  • Open CMD and set path to JDK's bin folder - eg. C:\Program Files\Java\jdk1.8.0_40\bin
  • Run below code
  • keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Now add SHA1 key to the app in firebase console


How To Setup Google Login ?

  • Select Project Settings

For Debug APK :-

  • Select Your app and add SHA-1 and SHA-256 key which you had created when generating google-service.json file

For Signed APK :-

  1. Open CMD and select path to bin folder of JAVA -> C:\Program Files\Java\jdk1.8.0.40\bin
  2. Copy your keystore to root of your drive eg:- D:\hdwallpaper.jks
  3. Copy and Paste keytool -list -v -keystore D:\keystore_name.jks -alias alias_name
  4. Enter keystore password (password might be not visible)
  5. Copy SHA1 and SHA256 key and add in firebase as shown above
Note :- After you have added keys again download google-service.json file and replace it in your android code


When Uploading Apk to Playstore :-

  1. Select OPT-OUT or if you select continue then you have upload keystore and get SHA-1 key from google app signing certificate as follows
  2. Navigate to the Google Play Console and login
  3. Choose the application you are signing
  4. Go to Release Management –> App Signing
  5. Copy /Download the SHA-1 or SHA-256 certificate fingerprint from the App signing certificate section
Note :- After you have added keys again download google-service.json file and replace it in your android code

How To Setup Facebook Login ?

Open https://developers.facebook.com/
Documentation https://developers.facebook.com/docs/facebook-login/android

  • Create New App
  • Select Facebook Login Option
  • Choose Android
  • Click next
  • Enter your package name and default disply activity class name
  • Create your hash key
  • download openssl for windows https://code.google.com/archive/p/openssl-for-windows/downloads
  • Debug apk generate hash key
  • Note :- use this code to generate hash key for debug apk find from log cat. remove this code after you have generate hash key
  • @Override

    public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

                try {
                       PackageInfo info = getPackageManager().getPackageInfo(
                                  "{your-package-name}", //Insert your own package name.
                                  PackageManager.GET_SIGNATURES);
                for (Signature signature : info.signatures) {
                      MessageDigest md = MessageDigest.getInstance("SHA");
                      md.update(signature.toByteArray());
                      Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
                      }
                } catch (NameNotFoundException e) {

                } catch (NoSuchAlgorithmException e) {

                }
                ...
  • If you have any trouble creating hash key use this following application generate hash key
  • https://m.apkpure.com/keygentool/com.aivarsda.keygentool

  • Sign apk generate hash key
  • keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
    Example :- keytool -exportcert -alias xxxxx -keystore E:\xxxxx.jks | "C:\Program Files\openssl-0.9.8e_X64\bin\openssl" sha1 -binary | "C:\Program Files\openssl-0.9.8e_X64\bin\openssl" base64

  • If you have any trouble creating hash key use this following code link
  • https://developers.facebook.com/docs/facebook-login/android/advanced
  • If hash key doesnt work the generate this way - In your device First install debug/signed apk then run this apk and you can get the hash key
  • https://m.apkpure.com/keygentool/com.aivarsda.keygentool
  • Enable single sign on for your app
  • Copy your facebook_app_id and fb_login_protocol_scheme
  • Open Android Studio >Status Reward App > res > values > strings.xml
  • Enter your facebook app id inside "facebook_app_id" string tag:
    <string name="facebook_app_id">XXXXXXXXXXXXX</string>
  • Enter your fb login protocol scheme inside "fb_login_protocol_scheme" string tag:
    <string name="fb_login_protocol_scheme">XXXXXXXXXXXXX</string>
  • And click next all step
  • Add your privacy policy link
  • Go to setting > basic
  • Enable in devlopment and choose a category

How to verify purchase code?

  • Open Admin Panel > App Verify
  • Enter your Envanto username from which you have buyed the app
  • Enter your purchase code for this application
  • Enter your android app final package name

  • Note :- Make sure the username and purchase code is right and package name in admin panel and in application is same for app to work. Also make sure you finalize the packagename and then only enter in admin panel. Do not enter any dummy package name.


Where to put Server Url, API key and other keys in Application?

Server URL :-
  • Select Project > Go to Gradle Scripts > gradle.properties
  • Open gradle.properties
  • Now if your Sever is http://www.abc.com/ so your server url will be
    https://abc.com/hd_wallpaper_app/api/v1/
API Key :-
API Key In Android Source Code :-
  • Select Project > Go to Gradle Scripts > gradle.properties
  • Open gradle.properties
  • Now change API_KEY
  • You can keep any characters for the key e.g. hdwallpaper or hdwalls or abcdefgh or any word
API Key In PHP Source Code :-
  • In PHP Source Code open app\Http\helpers.php file
  • Goto checkSignSalt method
  • Now change viaviweb to your key same as in android source code
  • You can keep any characters for the key e.g. hdwallpaper or hdwalls or abcdefgh or any word
  • Note :- It is optional if you do not want to change. Keep as it is, but if you change API_KEY then it should be same in Android Source Code as well as PHP Souce Code, for API to show data
Encryption Key and IV :-
  • Select Project > Go to Gradle Scripts > gradle.properties
  • Open gradle.properties
  • Now change ENC_KEY and IV
  • You can keep any characters for the key e.g. onlinemp3 or musicplayer or abcdefgh or any word
    Note :- IV should be 8 characters long
    Note :- It is optional if you do not want to change. Keep as it is
Note :- If you donot understand about the keys then do not change any of the keys. Just change the SERVER_URL


How to Enable/Disable RTL?

  • Open Android Studio > app > res > values > strings.xml
  • Change isRTL to True if you want to enable or False if you want to disable
  • Change all the text below in your language
Note :- RTL stands for Right to Left. If your language is RTL (e.g. Arabic) then enable it

How to Change About?

Open your Admin Panel

  • Open Settings
  • Select General
  • Fill the Required Fields
  • Click Save

Other Settings

  • Live Wallpaper
  • Pagination Limit

App Privacy Policy

  • Go to Pages
  • Click Add Pages or Edit Already Created Privacy Policy Page
  • Change your privacy policy
  • All Pages added here will be shown in settings page in app
  • Change the Privacy Policy Url in Android Source Code

How to Add Wallpapers to Featured?

Open your Admin Panel

  • Open Wallpaper
  • Click on Add to Featured Button


How to turn off Live Wallpaper section?

Open your Admin Panel

  • Open Settings
  • Other App Settings
  • Live Wallpapers On/Off


How to turn off Color section?

Open your Android Source Code

  • Open Android Studio > app > com > example > utils > Constant.java
  • Now change isColorOn to false
  • If you do not want wallpaper based on color then turn if off. This will hide color list in all pages


How to change default theme for app?

Open your Android Source Code

  • Open Android Studio > app > com > example > utils > SharedPref.java

How to change Splash Screen, Application Icon and Other icons?

How To Change Application Icon

  • Open Android Studio > app > res > all mipmap folder > app_icon.png
  • Rename your square icon with app_icon.png and paste in mipmap folder
  • Open Android Studio > app > res > all mipmap folder > app_icon_round.png
  • Rename your round icon with app_icon_round.png and paste in mipmap folder
  • Replace all icons with particular size in particular folder

How To Change Splash Screen

  • Open Android Studio > app > res > drawable > splash.jpg
  • Rename your splash screen image with splash.jpg and paste in drawable folder

How to Change Notification App Icon

  • Open Android Studio > app > res > drawable
  • Rename your icon with ic_notification.png and paste in drawable folder

How To Change Navigation View Header Icon

  • Android Studio > app > res > drawable > ic_nav.png
  • Rename your navigation header icon with ic_nav.png and replace

How To Change Navigation View Background Image

  • Android Studio > app > res > drawable > bg_nav_header.png
  • Rename your navigation background image with bg_nav_header.png and replace

How To Change Background Color

  • Android Studio > App > Res > Values > Colors.xml
  • Enter your color inside "bg" string tag:
    <string name="bg">#001624</string>
  • Similarly, change other color if you want to change

How To Change Placeholder Icon

  • Android Studio > App > Res > drawable > placeholder_cat.png
  • Rename your placeholder icon with placeholder_cat.png and replace
  • Android Studio > App > Res > drawable > placeholder_wall.png
  • Rename your placeholder icon with placeholder_wall.png and replace

How To Change More App Link

  • Open Android Studio > App > Res > Values > Strings.xml
  • Enter your Play Store Apps Link inside "play_more_apps" string tag:
    <string name="play_more_apps">https://play.google.com/store/apps/developer?id=Vishal+Android+Apps</string>
  • Note :- If you dont have More App Url then just remove the url


How to Change OneSignal Details

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

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

How to Change One Signal App Id And Rest Key In Admin Panel?


How to Send Notification From Admin?

  • Open Admin Panel > Notification
  • Enter title and message which are mandatory
  • Upload Image if you want to show in notificaiton. This is optional
  • If you want to open wallpapers of particular category when click on notification then select any category. This is optional
  • If you want to open url in browser when click on notification then enter url. This is optional


How to Generate Facebook Ads ID?

Shortly Facebook Audience Network will switch to Bidding from Waterfall

Below is detailed steps for generating PlacementIDs from facebook

Open and login in Facebook Developer Website :- https://developers.facebook.com/

  • Click On My Apps
  • Click On Create App
  • If your app already exists then select your app
  • Enter App Name
  • Click On Products +
  • Click On Set Up button of Audience Network
  • Select your Business Manager Account or Create New One
  • Enter your app name
  • Click next
  • Click On Add of Android Section
  • Add your google app url if your app live
  • Click on Submit
  • Select the ad setup option
  • Choose ad type
  • Click on next
  • Generate Another Ad PlacementID:-
  • Go to side menu
  • Go to Integration > Properties
  • Now select your app
  • Now click on more option and click Create Placement
  • Enter your ad placement name
  • Select your ad type
  • Click Create Placement below
  • How to find your ad ids
  • Testing Facebook Ads inside app:-
  • Go to side menu
  • Click Testing inside Integration menu
  • Turn On Testing enabled
  • Ad your device advertising id to load facebook ads
  • Find Advertising ID -> In your device go to Google Setting > Ads > Your Advertising ID
  • Note :- Disable Testing when you upload your app to playstore

    Note :- To test facebook ads in your phone you have to either add your phone advertising id or you have to login to facebook app in your phone with the same account in which you have created app

  • Enter your app playstore url and click submit button
  • Add Your Payment Account if you havent added
  • Setup all details

How to Change Admob Ad Details?

How To Change Ad Settings In Admin

  • Open Admin Panel
  • Open Ad Settings
  • Edit Ads which you want to show

  • Admob App ID

  • Admob Publisher ID
  • EU User Consent

How to Change StartIO(StartApp) Ad Details?

  • Register on StartIO/StartApp Ads and add new app and get app id
  • Open Admin Panel
  • Open Ad Settings
  • Edit StartApp
  • Set status active

How to replace Applovin Max ID?

  • Register on Applovin Max Ads and add new app and get app id and create ad units
  • Need to create banner/interstitial/native ad units and replace thier id in admin panel setting page
  • Open Admin Panel
  • Open Ad Settings
  • Edit Applovins Max
  • Also add Applovins Max App id in Android code

How to replace Wortise IDs?

  • Register on Wortise Ads and add new app and get app id and create ad units
  • Need to create banner/interstitial/native ad units and replace thier id in admin panel setting page
  • Open Admin Panel
  • Open Ad Settings
  • Edit Wortise
  • Edit Wortise UTM in android code, use your company name or app name

How to Generate Signed Bundle?

Create New Keystore

  • Click Build > Generate Signed Bundle

  • Select Android App Bundle and click Next

  • Click On Create New or if you are updating app click choose existing

  • Select Keystore Path
  • Enter Keystore password and confirm password
  • Enter any name for alias
  • Enter key password and confirm password
  • Choose Validity Years
  • Fill rest of the details and click OK

  • Enter keystore password, alias name and key password and click next

  • Choose the signed bundle destination
  • Tick the signatures
  • Click Finish

Note :- Please save the keystore and remember the keystore password, alias and key password. If you want to update app in future you have to use this keystore. With new keystore you cannot update your app


How to fill Data Safety Form?

  • Open Playstore Console and open your app
  • Click on App Content tab
  • Click on Manage option of Data safety
  • Click Next
  • Select options as follows and click Next
  • Go to Personal info and select Name, Email address, User IDs and Phone number
  • Go to Photos and videos and select Photos
  • Go to App info and performance and select Crash Logs
  • Scroll down and go to Device and other IDs and select Device and other IDs and click Next
  • Click On arrow on each data type you selected
  • Select options as follows and click Save and click Next
  • Do same for all other data types
  • For Device and other IDs select options as follows and click Save and click Next
  • Click Submit

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.


Application Showcase in PlayStore

Once you will publish your app to Google Play or any other Android store, send us your app link. We will happy to showcase your app into our website & Codecanyon page.


Rating

If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your Codecanyon Menu > Download page.


Credits

I've used folowing sources into this app:

  • OneSignal
  • Admob
  • SquareUp Picasso
  • Ad Consent
  • Fresco
  • SquareUp Okhttp
  • Round Image View Makeramen
  • Jp Wasabeef Recyclerview-Animators
  • Jd Alexander LikeButton
  • Edmodo Android Image Croppper
  • Chrisjenx Calligraphy
  • Devlight Infinitecycleviewpager
  • Castorflex Smoothprogressbar

Once again, thank you so much for purchasing this app. As I said at the beginning, I'd be glad to help you if you have any questions relating to this app. No guarantees, but I'll do my best to assist. If you have a more general question relating to the apps on Codecanyon, you might consider visiting the "FAQ / Support" section and asking your question in the "Comments" section at Codecanyon app detail page.

Vishal Parmar
Viavi Webtech-India