I have the following activity in my app that sets a geo location on a map fragment but when I click the activity in my testing it crashes with the following errors:
I looked through the errors but I can't make sense of why it is crashing as its referring to main as one of the reasons.
This is where I'm calling the code in the onCreate() for reference:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map_gmit);
/*map = (MapView)findViewById(R.id.map);
map.setBuiltInZoomControls(true);*/
//code to add a map marker at GMIT geographic location
GoogleMap mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
mMap.addMarker(new MarkerOptions()
.position(new LatLng(53.271900177, -9.04889965057))
.title("GMIT Galway Location"));;
}