Hi, guys,
I want to get an xml layout file(in other apk that has been installed
in the emulator) to add to my screen, I use getPackageManager
().getResourcesForApplication(name).getLayout(id) to get the xml file,
and then inflater to my screen, that is ok. But it can't resolve the
string ids and drawable ids in the xml file.
so I want to get the LayoutInflater from that apk, but when I tried to
do this, I got a nullpoiterexception, I think it is because I never
start that apk(activity).
how should I do? Am I going on the right way?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to