Sorry, I don't think I explained very clearly, the activity that I am extending from resides within a different application. So I want to access the resources from that application as well. Give me a shout if that is still unclear
On Jan 28, 7:19 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Bamboo wrote: > > I have created a subclass of Activity, 'CustomActivity', that > > overrides the onCreateOptionsMenu and onOptionsItemSelected methods. > > > In a couple of other applications I have extended this subclass to > > provider a common menu for each activity. Is it still possible to > > access the resources from this Subclass? > > > By default it uses the resources from the current activity (Strings, > > xml layout etc) > > Activities don't have resources; applications do. > > Multiple activities in the same application share their resources. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 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 -~----------~----~----~----~------~----~------~--~---