[In Theme package]
1. set action for activity, for example: my.package.theme
2. add all files you need for this theme
[In main app]
// Create intent with your action: my.package.theme
Intent intent = new Intent();
intent.setAction("my.package.theme");
// Get list of all installed packages with your themes
List<ResolveInfo> lresolve = pm.queryIntentActivities(intent, 0);
int size = lresolve.size();
for (int i = 0; i < size; i++) {
ApplicationInfo appInfo = lresolve.get
(i).activityInfo.applicationInfo;
try {
Resources resSkin = pm.getResourcesForApplication(appInfo);
int backres = resSkin.getIdentifier("my_background", "drawable",
appInfo.packageName);
// getting background from theme package
Drawable background = resSkin.getDrawable(backres);
} catch (NameNotFoundException e) {
e.printStackTrace();
}
}
Hop this help.
On 27 окт, 18:09, Moto <[email protected]> wrote:
> I bump once more see if I can get an experts comment on this...
>
> On Oct 26, 4:08 pm, Moto <[email protected]> wrote:
>
>
>
> > I essentially need a lead just to get started... anyone?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---