This is a handy techinique when used in conjuction with the previous week's tip with separate builds per release type.
To override the application name (and any other resource really), create a new folder under
app/src that matches your release name. In this case we'll be overriding the debug release, so
Once you have that simply create the same folder structure that is inside
app/src/main for overrides. For overriding strings we'll create
Inside the new
values folder create
strings.xml and add the new
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">MyApp Debug</string> </resources>
Now when you install the new debug only application it will have a new name to distinguish between the various release types!