Using the package name and a resource ID you can load resources from another APK. That's how Launcher loads icons, strings and widget resources for instance. All the APIs you need are in the Resources class if I recall properly.
On Jan 1, 2013 5:25 PM, "Russell Wheeler" <russellpeterwheeler@gmail.com> wrote:
-- As my previous question seems to have got hijacked by someone else I'll ask again, and hopefully get additional responses.I have included my original question plus latimerius' reply, and then my subsequent reply...------------------------------------------------------------------------------------------------------------------------------------------------------------------------
On Tuesday, January 1, 2013 9:55:49 PM UTC, latimerius wrote:On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler <russellpe...@gmail.com> wrote:If I wish to use images stored in another app, that I've written, what is the best way to do this?
Content provider or directly accessing the res folder?I do almost the same, except that my images are in the assets/ directory, and accessing it directly has worked well for me.
On Wednesday, January 2, 2013 1:20:30 AM UTC, Russell Wheeler wrote:--Latimerius,So how do you directly access them from the assets folder? Doing it this way, are the images available to anyone who has root access? i.e. can they steal your images?Why do you use assets? For ease, or for some other reason? I thought it would be better to have them in the res folders so that the diff screen sizes still get used, e.g. ldpi/hdpi etc folders?Thanks for asking, not sure quite how this topic has got off of my control?!?! hahaRuss
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment