Multiple extends

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Multiple extends

Postby R-koster » Tue Jul 27, 2010 2:06 pm

Hi ,
I got a simple question. I need to create a activity which uses both a mapview and a list view. Can i extend my activity to use them both ?
R-koster
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Apr 19, 2010 8:58 am

Top

Re: Multiple extends

Postby jonbonazza » Tue Jul 27, 2010 2:31 pm

Yes, just do

extends MapActivity, ListActivity
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Multiple extends

Postby R-koster » Tue Jul 27, 2010 2:52 pm

I tried doing that but i get a syntax error on the ,
R-koster
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Apr 19, 2010 8:58 am

Re: Multiple extends

Postby jonbonazza » Tue Jul 27, 2010 3:23 pm

Err.. wait.. Actually, I don't think you can extend both of those. You may have to just extend MapActivity and then setup a listview manually.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Multiple extends

Postby R-koster » Wed Jul 28, 2010 9:33 am

Ok thanks :)
R-koster
Junior Developer
Junior Developer
 
Posts: 10
Joined: Mon Apr 19, 2010 8:58 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests