On Fri, Jul 30, 2010 at 1:29 PM, Priyank <priyankvma...@gmail.com> wrote: > Can my class extend 2 or more classes at a time.
No, sorry. > I want to extend Activity as well as Application. Even if that were possible, I doubt this would be a good idea. > Activity because, I need to do a couple of things during the > onCreate() [binding a service]and Application, because I am creating > objects of another class [service class]which needs to be accessible > throughout my application. Use a service, static data members, or a separate custom Application class. -- 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