Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Is error in this line GoogleMap map = ((MapSupportFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); ? Commented Sep 19, 2014 at 7:42
  • exactly that line.. @maven Commented Sep 19, 2014 at 7:44
  • Perhaps you are missing the import statement for com.google.android.gms.maps.SupportMapFragment. Commented Sep 19, 2014 at 7:45
  • No..I imported it, but I think that I solved dividing that code (after 2 hours of attempts). I written this and there are no more errors for SupportMapFragment: MapFragment map =((MapFragment)getFragmentManager().findFragmentById(R.id.map)); GoogleMap mappa = map.getMap(); But now, when I run into my Galaxy note 2, the app crash before start :/ Commented Sep 19, 2014 at 7:48
  • you need to import support jar also Commented Sep 19, 2014 at 7:55