-
Notifications
You must be signed in to change notification settings - Fork 29
5. Editing the code
Right click on the java folder > Create Package.
Now simply drag and drop the files to the new folder and also edit package name in the AndroidManifest.xml.
Also clean/rebuild the project because of possible “R” errors.
Go to the res > values > navigation.xml, enter the desired URL(s) to display.
In case you want multiple URLs to be displayed you can enable the sidebar this way:
Open java > package.name.something > activity > MainActivity.java.
Jump to line 176 and comment it out.
To create an action icon (for the sidebar), you simply get to the drawables (res) and create a new Image Asset.
To replace the launcher icon you do the same, just select a Launcher Icon from the dropdown.
Register and complete the setup at OneSignal, you then will receive an ID.
Open the build.gradle file in the app folder and jump to line 44. Enter your ID there and sync.
In the theme.xml (res > values) you can find all the available colors, in case you want to use one of the other
presets, go to the AndroidManifest.xml (main) and change the value in line 24.
Open java > package.name.something > WebAppConfig.java. Change the false to true.
For AdMob:
Open res > values > admob.xml and enter your IDs.
The test device ID is not required.
For Analytics:
Open res > xml > analytics_app_tracker.xml and enter your ID in line 5.
Open res > values > strings.xml and enter the name of your app in line 4.