Issue
In an Activity, I have a small Google Map and I would like when I click on it that it opens a new Activity with the map in fullscreen.
How can I transform my small map into a button ?
For those who have Foursquare on their tablet or smartphone, I would like to do the same thing than the Google Map in the Activity of a restaurant for example.
Solution
Use this code setonclick listener
mMap.setOnMapClickListener(mMapClickListener);
and than use it
private GoogleMap.OnMapClickListener mMapClickListener = new GoogleMap.OnMapClickListener() {
private LatLngInterpolator mLatLngInterpolator;
@Override
public void onMapClick(LatLng point) {
//your code
}
};
vote up if its helpful.
Answered By - Fasiha
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.