Code example for GoogleMapOptions

0
 
public class ShowResult extends Activity {
	private TextView text;
	private GoogleMap mMap;
	private LatLng location;
	GoogleMapOptions googleOptions = new GoogleMapOptions();
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.show_result_1);
		googleOptions.mapType(GoogleMap.MAP_TYPE_SATELLITE)
				.compassEnabled(true);
		MapFragment.newInstance(googleOptions);
		// text = (TextView) findViewById(R.id.textView1); 
		Intent intent = getIntent();
		double[] loc = intent.getDoubleArrayExtra("Location");
		location = new LatLng(loc[0], loc[1]);
 
		mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))
				.getMap();