On Tue, Jul 27, 2010 at 6:54 PM, { Devdroid } <webnet.andr...@gmail.com> wrote: > I'd like to access resources from other packages installed. Is there > any better practice than > using getResources() combined with createPackageContext()?
You can also use PackageManager. I don't know if that's a "better practice" or not. > Another > question is how to > use resources from other packages in methods like Notification(int > icon, CharSequence > tickerText, long when), where 1st argument is just resource id? You can't, AFAIK. Things that take a Context and a resource ID might be able to use your package context to get the resource from other packages. Methods like the Notification constructor that do not take a Context will get the resource from your own package. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- 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