[android-developers] Re: How to inflate an xml file with ids from other apk?

2009-03-15 Thread quill
Hi Mercury, yes, I setup the apk in the emulator. And I try to reboot the emulator the problem still exist. It seems the 'resourcemanager' treats the string ids as locals On Mar 16, 9:42 am, Mercury wrote: > Hi quill > > There are some questions for you maybe can help you solve this problem > >

[android-developers] Re: How to inflate an xml file with ids from other apk?

2009-03-15 Thread quill
Hi, David, yes, I have defined the string id "hello" in the strings.xml(in other apk), its id is 0x7f04 in R.java. And in my application, there is also a string's id defined as 0x7f04, when the my application runs, it shows the string define in my strings.xml, not in the other apk. On Mar

[android-developers] Re: How to inflate an xml file with ids from other apk?

2009-03-15 Thread Mercury
Hi quill There are some questions for you maybe can help you solve this problem first, from your question, Did you setup the akp into android emulator? if yes, please reboot it, and try it again. last time, we also had those problem when we setup new akp. at the beginning, we also could get some

[android-developers] Re: How to inflate an xml file with ids from other apk?

2009-03-15 Thread David Yue
Did you define the string id "hello" in the strings.xml file? You may need define it in the 'other apk' 's strings.xml file, you can try. On Mar 16, 9:25 am, quill wrote: > Hi, guys, > I want to inflate a layout xml file(in different apk), so I use > res = getPackageManager().getResourcesForAppl