Monthly Archives: September 2018

Create new project in Android Studio as copy of another

With AS closed, use file manager to copy project folder to create another project and change folder name to new name. Go into newproject/app and edit build.gradle (eg in Notepad) to change package name. In same way edit AndroidManifest.xml to … Continue reading

Posted in Android | Leave a comment

drawable not found

I was getting this stack dump, which made it difficult to work out what the problem was. android.content.res.Resources$NotFoundException: Resource ID #0x7f060056 at android.content.res.Resources.getValue(Resources.java:1123) at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:328) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:193) Problem was fixed by moving 2 vector drawables (used in menu) from drawable-v24 … Continue reading

Posted in Android | Leave a comment

no actionbar

When copying projects from an Android sample project I’ve found that when the app runs there is no action bar visible. Solved this by the following. Into the top of the activity put android.support.v7.app.ActionBar ab; Into onCreate put actionBarSetup(); Create … Continue reading

Posted in Android | Leave a comment