This is called "multiple inheritance", and Java - the language - doesn't
have this feature, regardless of the platform (Android or not).
Break up your code logic into more fine-grained pieces. You can bind to
the service from multiple activities, as many as necessary.
Also, you don't need to explicitly create Service objects - this is done
for you by the Android framework, when you either bind to a service, or
just start it.
-- Kostya
30.07.2010 21:29, Priyank пишет:
Hi,
I had a basic question.
Can my class extend 2 or more classes at a time. What is the syntax.
I want to extend Activity as well as Application. Wont this create
problems in the manifest file?
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.
Thanks,
Priyank
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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