Reputation: 4876
I got this class
public class GoogleMapActivity extends MapActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
}
}
and I get an error in editor - "MapActivity cannot be resolvet to a type".
This tutorial says that I have to extend this particular class.
I mention that I have specified in manifest that I need google map library like this
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<uses-library android:name="com.google.android.maps"/>
Upvotes: 1
Views: 58
Reputation: 132972
Make sure you have Created your project by selecting Google API SDK . if not then see this tutorial for how we Create Android Google Map Application :
http://www.androidhive.info/2012/01/android-working-with-google-maps/
Upvotes: 1