i just want to ask i want to make googlemaps apps on android.. i have follow instruction from many website (include from google developer) but the apps doesn\'t work on my r
Use MapView in your xml
and Use the below code for the GoogleActivity:
public class GoogleActivity extends Activity {
private GoogleMap mGglMpInstance;
private MapView mMapView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
MapsInitializer.initialize(MainActivity.this);
} catch (GooglePlayServicesNotAvailableException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
initailizeLayout(savedInstanceState);
}
private void initailizeLayout(Bundle savedInstanceState){
mMapView=(MapView)findViewById(R.id.mMapView);
mMapView.onCreate(savedInstanceState);
mGglMpInstance=mMapView.getMap();
}