Make sure it is imported in your class: import com.google.android.maps.MapActivity;
Another thing to check is that the manifest has this line: <uses-library android:name="com.google.android.maps" /> Although I think that second thing is a force close error, not an Eclipse error. On Oct 21, 3:39 pm, King Solomon <fuzay...@gmail.com> wrote: > Hi. I have tried using MapActivity as it is suggested by this > tutorial:http://developer.android.com/intl/fr/guide/tutorials/views/hello-mapv... > However I get this error message in Eclipse: "MapActivity cannot be > resolved to a type". Yes, I have checked Google APIs 4 and even > verified that in default.properties. > > Here's my code (it is very simplified version as I tried narrowing it > down): > > ------------- > import android.app.Activity; > import android.os.Bundle; > > public class KingSolomonDriving extends MapActivity { > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > }} > > -------------- > > Can anyone help me figure this out? > > Thank you in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---