I am setting the Map to Satellite view on click of a toggle button
mapToggle.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
if (mapToggle.isChecked())
{
mapV.setSatellite(true);
} else {
mapV.setSatellite(false);
}
}});
I want to programitically determine which mode it is in when the app restarts. Please advice.
The way I accomplished this is to set an int value in your SharedPreferences. Then onClick of that button, get the value and switch satellite on or off accordingly.
You may want to clean it up a little, but it works for me.