Forum Xamarin.Android

close intent google maps

ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

Hello all,

in my app, i have one activity (mainActivity) with a button.
on click on button i start a navigation with an intent (google maps)
here is it the code :

string address = "...........";

        Android.Net.Uri mapUri = Android.Net.Uri.Parse("geo:0,0?q=" + Android.Net.Uri.Encode(address));
        Intent mapIntent = new Intent(Intent.ActionView, mapUri);



that's work fine, but i wonder if it's possible to close this intent ?

because i must to click several time on button back press for to return to my main activity...
i don't know why ....

perhpas something exist with configuration for google maps / intent, if i arrive at destination close it
but nothing found ...

thanks for your idea



Sign In or Register to comment.