Hello, If you need to use some methods in all your Activities - create a base Activity class with these methods :)
And use these methods in dirived Activity A and B. No copy past is needed. Best regards, Yahor On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav <mukicha...@gmail.com>wrote: > Why not go with TAB Activity, that helps. > > > > On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole < > k.kirankumar1...@gmail.com> wrote: > >> Hey Siva and Mukhesh, >> Thanks for the response. >> >> The problem which I am forcing to use this unfair architecture is.. I >> have hard time to show different options menu for different layout XML >> files.. >> >> Can you please give me a quick example how to change the options based on >> the layout. >> >> Thanks, >> KIRANKUMARKENDOLE >> >> >> On Tue, Nov 29, 2011 at 7:14 AM, siva prakash < >> sivaprakashcs07b...@gmail.com> wrote: >> >>> If you want to access those methods in various activities, why dont you >>> create a simple java class and acess them?? , if you want to share >>> variables across different activities, u can save them in AppPreferences . >>> Please provide me more details if i didnt get u :) >>> >>> >>> On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote: >>> >>>> Hey guys, >>>> >>>> I have a problem while using intents. Can you please suggest me the >>>> right way. >>>> >>>> I have an Activity1 which contains some methods ( >>>> addData(),deleteData() ). when I use intent to other Activity2 Class.. >>>> I am not able to access the methods which are in Activity1. I cant copy >>>> paste all the methods in all Activities. I dont think its good practise. >>>> Can anybody suggest me. >>>> >>>> Thanks, >>>> KIRANKUMARKENDOLE >>>> -- >>>> 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 <android-developers@googlegroups.com> >>>> To unsubscribe from this group, send email to >>>> android-developers+**unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >>>> For more options, visit this group at >>>> http://groups.google.com/**group/android-developers?hl=en<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 <android-developers@googlegroups.com> >>> To unsubscribe from this group, send email to >>> android-developers+**unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<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+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > > > -- > Warm Regards, > *Mukesh Kumar*, > Android Consultant/Freelancer, > India,Hyderabad. > > -- > 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 > -- 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