Novice Question

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

Novice Question

Postby lesmond » Thu Jul 01, 2010 10:12 am

Hello, please don't shoot me down!

I am following the following...
http://developer.android.com/guide/tuto ... pview.html

I have got to step 5 and can't debug as I get the error

"MapActivity cannot be resolved to a type".

Am I missing an import? Should it do this for me?

Thanks, and be nice!

Lee
lesmond
Junior Developer
Junior Developer
 
Posts: 11
Joined: Thu Jul 01, 2010 7:26 am

Top

Re: Novice Question

Postby blundell » Thu Jul 01, 2010 2:32 pm

Are you using eclipse?
Press Shift+Ctrl & O

This will organise your imports for you.

If not add the import:

com.google.android.maps.MapActivity
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Novice Question

Postby lesmond » Thu Jul 01, 2010 10:15 pm

Thanks, the Shift-Ctrl-O is great!

Up hill struggle begins!
lesmond
Junior Developer
Junior Developer
 
Posts: 11
Joined: Thu Jul 01, 2010 7:26 am

Re: Novice Question

Postby blundell » Thu Jul 01, 2010 10:39 pm

Yeah I'm in the habit now whenever I see an error or red line I smash ctrl+shift+o as the first thing I do :p
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest