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.

Online MP3

Created:- 16 July 2025
Company:- VIAVIWEB - 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 Ladybug Feature Drop | 2024.2.2 Patch 2, you can download archive from here:
https://developer.android.com/studio/archive



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 itSelect RefactorClick 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 > Online MP3> res > values > strings.xml
  • Enter your app name inside "app_name" string tag:
    <string name="app_name">Online MP3</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 verify purchase code?

  • Open Admin Panel > App Verify
  • Enter your codecanyon username from which you have bought 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 change 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
    http://www.abc.com/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. onlinemp3 or musicplayer 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 android source code
  • You can keep any characters for the key e.g. onlinemp3 or musicplayer 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 and PHP Souce Code as well 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. onlinemp3encrypt or abcdefghijklmnop or any word
    Note :- ENC_KEY and IV should be 16 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


How to Change About?

Open your Admin Panel

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

Other Settings

  • Song Download
  • 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 turn on/off subscription?

Open your Admin Panel

  • Open Settings
  • Other Settings


How to turn off song download?

Open your Admin Panel

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

Note :- If subscription is disabled download on/off will work as usual. If subscription is on download will work according to subscription plans. If user has not paid for plan which includes download, user will not able to download songs

How to change splash loading time?

Open Android Studio > app > com > vpapps > onlinemp3 > utils > Constant.java


Note :- You can reduce splash loading time but open ads may not load in that time.

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 Background Image

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


How To Change Background Images

  • Android Studio > app > res > drawable > bg.png
  • Rename your background image with bg.png and replace
  • Android Studio > app > res > drawable > bg_login.png
  • Rename your login background image with bg_login.png and replace
  • Android Studio > app > res > drawable > bg_login.png
  • Rename your login background image with bg_login.png and replace

How To Change Placeholder Icon

  • Android Studio > app > Res > drawable > placeholder_artist.png
  • Rename your placeholder icon with placeholder_artist.png and replace
  • Android Studio > app > Res > drawable > placeholder_song.png
  • Rename your placeholder icon with placeholder_song.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=Viaviwebtech</string>
  • Note :- If you dont have More App Url then just remove the url


How to Change One Signal 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 Send
  • Enter title and message which are mandatory
  • Upload Image if you want to show in notificaiton. This is optional
  • If you want to show songs of particular category when click on notification then select type category and select any category. This is optional
  • Similary you can select song, artist, album or playlist
  • If you want to open url in browser when click on notification then enter url. This is optional

How to Generate Facebook Ads ID?

Facebook Audience Network switched 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 Details?

How To Change Ad Settings In Admin

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

  • Admob Publisher ID

  • Admob App 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/openads/rewardads 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/openads/rewardads ad units and replace thier id in admin panel setting page
  • Open Admin Panel
  • Open Ad Settings
  • Edit Wortise

How to replace Unity Ads IDs?

  • Register on Unity Ads and add new app and get app id and create ad units
  • Go to Unity Ads and open Projects tab and click on New and add new project
  • Open unity ads monetization and go to Ad Units and copy your Unity Game Id and ads id and add in admin panel

How to Generate Signed Bundle?

Create New Keystore

  • Click Build > Generate Signed Bundle / APK

  • Select 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 Audio Files and Music Files
  • 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

How to add permission for FOREGROUND_SERVICE_DATA_SYNC and FOREGROUND_SERVICE_MEDIA_PLAYBACK?

  • In your play console you will find this in App Content
  • For FOREGROUND_SERVICE_DATA_SYNC select others and make a video of downloading mp3 and upload its link
  • For FOREGROUND_SERVICE_MEDIA_PLAYBACK select appropriate option and make a video of playing mp3 and upload its link

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
  • Crashlytics
  • Firebase
  • Facebook Conceal
  • SquareUp Picasso
  • ExoPlayer
  • Event Bus
  • Circularimageview
  • Ad Consent
  • Pageindicatorview
  • Okhttp
  • Verticalseekbar
  • Round Image View Makeramen
  • Chrisjenx Calligraphy
  • Indicatorseekbar
  • 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.


We provide support through WhatsApp, Email or Team(Skype).

Thanks
VIAVIWEB - INDIA