Created
August 20, 2014 00:33
-
-
Save tophyr/4237c58e55674b5938df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MapActivity { | |
private GoogleMap mMap; | |
private MapFragment mFragment; | |
public void onCreate(...) { | |
mFragment = MapFragment.newInstance(parameters); | |
// set other stuff up | |
} | |
public void somewhereLaterInCode() { | |
mMap = setupGoogleMapSomehow(); | |
mFragment.setGoogleMap(mMap); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment