I am getting a return value of '0' which essentially means resource not found AFAIK. Note that I am passing the context for the leveraging app, but the package name declared in the AndroidManifest of the common app.
Thanks! Cheryl On Sep 18, 11:18 am, hackbod <[EMAIL PROTECTED]> wrote: > Could you please expand on "does not work"? Are there error messages > in the log? What value are you getting back, or are you getting an > except? > > Specifically for resources, the change to require signing has no > impact, because it is safe to load and use resources in any process > (the resources aren't code that can run in the process loading them). > > Also the ONLY thing that changed in all of this is that now, instead > of using that bogus android:signature value in the manifest to > determine if two .apks trust each other, we compare their certificates/ > signatures. > > On Sep 18, 7:58 am, Cheryl Sedota <[EMAIL PROTECTED]> wrote: > > > The beta SDK release notes found > > herehttp://code.google.com/android/RELEASENOTES.html > > state: > > > "Starting with this release, Android .apk files must be > > cryptographically signed, or the system will reject them upon > > installation. The purpose of this requirement is to securely and > > uniquely identify developers, so that the system can -- for example -- > > safely let multiple .apk files signed by the same developer share > > resources" > > > Can you please tell us what is meant by this statement? We are > > developing numerous applications and we'd like to put all of our > > shared resources (images, layouts, etc) into a common resources > > project and have all other apps load them from this common resources > > app. > > > I created a common app and a leveraging app, and I built them both in > > the same environment (which should mean that they have the same > > signature according to Xavier's post > > herehttp://groups.google.com/group/android-developers/browse_thread/threa... > > ) with a common sharedUserId declared in the AndroidManifest.xml, but > > still the following code does not work, indicating that the leveraging > > app is not able to retrieve a resource from the common resource apk: > > > int resourceId = myAppContext.getResources().getIdentifier("my_image", > > "drawable", "com.frogdesign.common.resources"); > > > What am I doing wrong? Is there another way to accomplish this? > > Please advise. > > > Thanks!! > > Cheryl > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---