I see. thank you Kumar. On Sep 6, 3:25 pm, Kumar Bibek <coomar....@gmail.com> wrote: > There can be many ways of doing this. What I regularly use, is to have > my own Activity class, say, MyActivity which extends the Activity > class. > > All the other activities in my application extend MyActivity instead > of Activity. In Activities, I have a few methods, which I think would > be used by almost all my activities, like firing intents, showing > toasts, dialogs, etc. > > So, in MyActivity, you can have a method, startIntent(Class class), > and write these three lines of code here. > > Now whenever you need to trigger an intent, just call this method with > the target activity class. > > -Kumar Bibekhttp://techdroid.kbeanie.com > > On Sep 6, 12:13 pm, xc s <sxchao2...@gmail.com> wrote: > > > > > Actually I also do this.
-- 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