Code example for SupportMapFragment

Methods: getActivity, startActivityForResult

    public void onInfoWindowClick(Marker marker) {
        TagInfo tagInfo = mMarkerDict.get(marker.getId());
        Intent intent = new Intent(getActivity(), DetailsActivity.class);
        intent.putExtra("taginfo", tagInfo);
        startActivityForResult(intent, EDIT_DETAILS_REQUEST);
    public void onActivityResult(int requestCode, int resultCode, final Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode == Activity.RESULT_OK) {
            if (requestCode == EDIT_DETAILS_REQUEST) {
                TagInfo tagInfo = data.getParcelableExtra("taginfo");
                final DatabaseHelper db = DatabaseHelper.getInstance(getActivity());
                db.updateTagInfoAsync(tagInfo, this);
Connect your IDE to all the code out there  Get Codota for Java