I developed two APP is: A.apk B.apk this process by specifying: android: sharedUserId = "com.xxxx.plugin"
Implemented in 2APP share a uid.
I now want to use from A.apk B.apk resource files, how to do, to achieve it?
For example: B.apk have raw / comm.xml, I hope A.apk can get used.
So my comm.xml change, as long as the upgrade B.apk it.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
public abstract Resources getResourcesForApplication (String appPackageName)
Reply:
Daniel gave himself up to wait for answers
Reply:
http://blog.sina.com.cn/s/blog_6714fba701018k8h.html
Reply:
This is just to get itself apk resources, this is my wish to get associated with another an apk Resources
Reply:
Wait cattle appear
Reply:
Themselves:
Context slaveContext = null;
try {
slaveContext = convertView.getContext (). createPackageContext (
"Com.carnurse.plugin.laws", Context.CONTEXT_IGNORE_SECURITY);
} Catch (NameNotFoundException e) {
e.printStackTrace ();
}
int resID = slaveContext.getResources () getIdentifier ("ic_launcher", "drawable", "com.carnurse.plugin.laws");.
holder.ivIcon.setImageDrawable (slaveContext.getResources () getDrawable (resID).);
No comments:
Post a Comment