Thanks guys for the quick response.
Will try it out and let you know

Thanks
Priyank

On Fri, Jul 30, 2010 at 12:38 PM, Mark Murphy <[email protected]>wrote:

> On Fri, Jul 30, 2010 at 1:29 PM, Priyank <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[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

Reply via email to