Wednesday, March 5, 2014

APK is not installed, dynamic deployment, load XML layout resource issues


@ Override
public void onCreate (Bundle savedInstanceState) {
System.out.println ("Start ACTIVITY1111");
/ / Super.onCreate (savedInstanceState);
System.out.println ("Start ACTIVITY");
/ / Test DexClassLoader Apk dynamically loaded classes in
not installedTextView t = new TextView (otherActivity);
t.setText ("I was testing");
Log.i ("sys", "Fragment project started");
int resID = resources.getIdentifier ("ccccccccccc", "layout", "com.nmbb");
View vvv = View.inflate (otherActivity, resID, null);
otherActivity.setContentView (vvv);
}

public void setActivity (Activity paramActivity, Resources res) {
Log.d ("sys", "setActivity ..." + paramActivity);
this.otherActivity = paramActivity;
this.resources = res;
}

These are the Activity class, and has been the object APK's resources is not installed, you can load the image resource, but now according to the wording of the code, the layout can not be loaded, no code error, vvv object is there, but it is not loaded up. Seek advice<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Bangniding
Reply:
Vvv your layout is correct?
Since they know the ID of. Directly set ID, not a set VIEW
Reply:
http://asysbang.com/forum.php?mod=viewthread&tid=31&extra=page% 3D1

Reply:
The landlord did not solve?
Reply:
Apkplug plugin framework with it, basically these issues are resolved
Reply:
Thank you, the problem has been resolved! XML is a reflection of the time there is a problem!

No comments:

Post a Comment