googleMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {
public void onInfoWindowClick(Marker marker) {
Intent rest_list = new Intent(getParent(), RestFullDetail.class);
TabGroupActivity parentActivity = (TabGroupActivity)getParent();
parentActivity.startChildActivity("mapRestDetail", rest_list);
}
});
When i tap on info window, info window freezes and doesn't navigate to another tab child activity. While freezing and crashing its not producing any logcat information.
Got Solution:
I found solution myself. Try async task excute on infowindowclick and put all the code (which was to run under info window click) in postexecute. It works like charm.
You need to follow these steps to perform custom info window click :
--> implement "GoogleMap.OnInfoWindowClickListener" and "GoogleMap.InfoWindowAdapter"
--> Inflate custom info window :
--> Set Listener : // InfoWindowClick