1) configuration in AndroidManifest. xml of applications and skin programs
<Manifest xmlns: android = "http://schemas.android.com/apk/res/android"
Package = ""
Android: versionCode = "6"
Android: versionName = "0.8.8"
Android: sharedUserId = "com. timgor. skin">
2) the file name must be the same as the skin file name of the same function in the application apk.
3) how to access resources
MXXX. getResourcesId (this, "activity_backgroud", "color") public int getResourcesId (Context context, String name, String type) {try {// obtain the skin-shared data packet String packageName = "com. timgor. tttt "; Context skinContext = context. createPackageContext (packageName, Context. CONTEXT_IGNORE_SECURITY); int resID = skinContext. getResources (). getIdentifier (name, type, packageName); if (resID> 0) {return skinContext. getResources (). getColor (resID) ;}} catch (NameNotFoundException e) {e. printStackTrace ();} catch (Exception e) {e. printStackTrace ();} return context. getResources (). getIdentifier (name, type, context. getPackageName ());}