Code example for SupportMapFragment

Methods: getActivity, onActivityResult

0
        startActivityForResult(intent, EDIT_DETAILS_REQUEST);
    } 
 
    @Override 
    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);
            } 
        } 
    } 
}