public
class
BreweryMap
extends
ActionbarMenu {
BeerData e;
String beerID;
GoogleMap map;
protected
void
onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
setContentView(R.layout.activity_brewerymap);
Intent intent = getIntent();
Bundle extras = intent.getExtras();
String breweryID = extras.getString(
"brewreyID"
);
map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
String url =
"http://api.brewerydb.com/v2/brewery/"
+ breweryID +
"?key=myKey&format=json&withLocations=y"
;
Log.d(
"map"
, url);
new
myAsyncTask(
this
,map).execute(url);
}
}