Re: [android-developers] Reading from another app

2013-01-03 Thread Russell Wheeler
Latimerius, Do you mean something like this? (I ripped this from another site) Resources res = context.getPackageManager().getResourcesForApplication(com.example.foo) I was doing something very similar already (posted below), though thought it was a bit of a hack. final String packName =

Re: [android-developers] Reading from another app

2013-01-02 Thread Russell Wheeler
RichardC looking through my phone using astro file manager, I can't find any apps that have been installed? Is that because I am not rooted? What folder would/should they be in if I can see them? Or do you mean the apk is readable before its installed? In that case, how do you save an apk from

Re: [android-developers] Reading from another app

2013-01-02 Thread Russell Wheeler
RichardC looking through my phone using astro file manager, I can't find any apps that have been installed? Is that because I am not rooted? What folder would/should they be in if I can see them? Or do you mean the apk is readable before its installed? In that case, how do you save an apk from

Re: [android-developers] Reading from another app

2013-01-02 Thread Latimerius
On Wed, Jan 2, 2013 at 2:20 AM, Russell Wheeler russellpeterwhee...@gmail.com wrote: Latimerius, So how do you directly access them from the assets folder? You have to know the name of the package whose images you want to use but that shouldn't be a problem in your case if I understand

Re: [android-developers] Reading from another app - resources/assets (Take 2!)

2013-01-02 Thread Romain Guy
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 russellpeterwhee...@gmail.com

[android-developers] Reading from another app

2013-01-01 Thread Russell Wheeler
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? Thanks in advance Russ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Reading from another app

2013-01-01 Thread Latimerius
On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler russellpeterwhee...@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

Re: [android-developers] Reading from another app

2013-01-01 Thread Russell Wheeler
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

[android-developers] Reading from another app - resources/assets (Take 2!)

2013-01-01 Thread Russell Wheeler
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...

Re: [android-developers] Reading from another app

2013-01-01 Thread RichardC
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? APKs are world readable Why do you