Custom popup activity in android instead of dialogue
<p>I am making an app that uses maps api, and I want to create a custom popup activity when the user creates a marker (not the generic yes/no dialogue). What I want to do is:</p>

<ol>
<li>when a user longclicks on map it opens a new activity instead of dialogue</li>
<li>this activity displays lat and lang, has a field to enter text, and yes/no buttons </li>
<li>if a user clicks yes the marker is pinned if no it is not</li>
<li>when a user clicks on the created marker it displays lat,lng and the entered text</li>
</ol>

<p>My current code:</p>

<pre><code>    //Add marker on long click
    mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {

    @Override
    public void onMapLongClick(LatLng arg0) {

        Intent intent = new Intent(getActivity(), CreateRestautantActivity.class);
        startActivity(intent);

        marker = mMap.addMarker(new MarkerOptions()
                .icon(BitmapDescriptorFactory.fromResource(R.drawable.custom_marker))
                .position(
                        new LatLng(arg0.latitude,
                                arg0.longitude))
                .visible(true));

      }
    });
</code></pre>

<p>Any help is appreciated :) </p>