ok, thanks! On febr. 13, 19:22, raju <[email protected]> wrote: > unsubscribe me > please \ > > On Mon, Feb 13, 2012 at 7:29 PM, leslie.karpati > <[email protected]>wrote: > > > > > > > > > Hi, > > > I have an activity and lot of "helper" class. A would like to access > > to an object that created in the activity. For example I want to > > access from a helper class to a service that created in the activity. > > > Ther is 3 way: > > 1.: use static objects (Is it not ugly if it is not a primitve?) > > 2.: send the object when call the method like: > > myHelper.doSomething(myService) > > 3.: use context like: ((myActivity) context).getMyService(); > > > which is the best way? > > > Thanks, > > Leslie. > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

