I downloaded MapShowActivitiy.class from Backendless Code Generation. I builded the .java class but I can’t solve this problem.
GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
I downloaded MapShowActivitiy.class from Backendless Code Generation. I builded the .java class but I can’t solve this problem.
GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
Did you make any changes in the downloaded code?
What is the version of the Android API you’re building for?
Yes I made any changes. Android API level is 23.
When I made any changes so :
GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMapAsync();
I got an error message getMapAsync (OnMapReadyCallback) in MapFragment cannot be applied.
Yes I made any changes. Android API level is 23.
I just generated the same project and ran it with Android Studio. The only change I made was for the version of gradle, as shown in the screenshot below. The project compiled and ran without any compilation problems whatsoever.
I believe the errors you are experiencing are related to the changes you made.
http://support.backendless.com/public/attachments/e1b897e08c88a07e483abe5473a5f584.png</img>
not working for me. When I changed my code so :
GoogleMap mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMapAsync(OnMapReadyCallback);
I dont know what to write here getMapAsync(…) ;
It looks like you need help with the Google maps API. Please consider posting to their support forum, this would be outside of our support.
Regards,
Mark
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();How can clear error .getMap();
Here’s a relevant StackOverflow question (there’s always one) with a detailed answer: https://stackoverflow.com/questions/38232747/cannot-resolve-method-getmap