I am using the following code to initialize the google map object:
if (googleMap == null) {
googleMap = ( (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
}
It works fine but on certain devices the googleMap object is shown as null.How do i work around it?
0 comments:
Post a Comment