Return Back to app from browser Xamarin.AndroidGet int value from enum in C#Why Data Can not Pass to Second ActivityHow to get GPS or LocationAndroid KSOAP2 error to get valueDisable click or touch for items in ListActivity Xamarin.AndroidIs there any way to run the current activity page without launching main activity in androidHow implement View.IOnClickListener interface with XamarinXamarin.Forms Google API Authenticating Users with an Identity ProviderWhat did I do wrong on setting up MvvmCross 6.0?App Center in-app updates not showing up in Xamarin Android app

Why does this if-statement combining assignment and an equality check return true?

Is it rude to call a professor by their last name with no prefix in a non-academic setting?

Which melee weapons have the Two-Handed property, but lack Heavy and Special?

Looking for a soft substance that doesn't dissolve underwater

Why didn't Thanos use the Time Stone to stop the Avengers' plan?

Compaq Portable vs IBM 5155 Portable PC

What could a self-sustaining lunar colony slowly lose that would ultimately prove fatal?

NIntegrate doesn't evaluate

What to do when you've set the wrong ISO for your film?

Where is the logic in castrating fighters?

Python program to find the most frequent letter in a text

Have 1.5% of all nuclear reactors ever built melted down?

Who will lead the country until there is a new Tory leader?

How do I partition a matrx into blocks and replace zeros with dots?

number headings

Should I disclose a colleague's illness (that I should not know) when others badmouth him

Can I tell a prospective employee that everyone in the team is leaving?

Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?

Why were helmets and other body armour not commonplace in the 1800s?

What are these arcade games in Ghostbusters 1984?

What is a Centaur Thief's climbing speed?

I unknowingly submitted plagarised work

Make 24 using exactly three 3s

Why didn't Project Mercury advance to an orbital flight on their second mission?



Return Back to app from browser Xamarin.Android


Get int value from enum in C#Why Data Can not Pass to Second ActivityHow to get GPS or LocationAndroid KSOAP2 error to get valueDisable click or touch for items in ListActivity Xamarin.AndroidIs there any way to run the current activity page without launching main activity in androidHow implement View.IOnClickListener interface with XamarinXamarin.Forms Google API Authenticating Users with an Identity ProviderWhat did I do wrong on setting up MvvmCross 6.0?App Center in-app updates not showing up in Xamarin Android app






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have a button in my mainactivity,after clicking it,it opens a new activity(Acitivity2).
And in that activity I am opening the browser.Here are the codes-



public class Activity2 : Activity


protected override void OnCreate(Bundle savedInstanceState)

base.OnCreate(savedInstanceState);
this.OpenBrowser();





public void OpenBrowser()


var uri = Android.Net.Uri.Parse("https://google.com");
var intent = new Intent(Intent.ActionView, uri);
intent.AddFlags(ActivityFlags.NoHistory)
.AddFlags(ActivityFlags.NewTask);
Application.Context.StartActivity(intent);

protected override void OnNewIntent(Intent intent)

base.OnNewIntent(intent);





Now my question is after successful completion of opening the url in the browser,how to go back to the app,currently browser never closes.
Sorry it may be simple question,but i am really struggling with it










share|improve this question
























  • This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

    – Leo Zhu - MSFT
    Mar 25 at 2:22











  • Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

    – uncle_scrooge
    Mar 25 at 3:18











  • intent could open url,but could not control to returning to app

    – Leo Zhu - MSFT
    Mar 25 at 3:54











  • No its possible,how come users are logging out of the application and returning to browser

    – uncle_scrooge
    Mar 25 at 3:56











  • what do you mean "logging out of the application and returning to browser" ?

    – Leo Zhu - MSFT
    Mar 25 at 4:02

















0















I have a button in my mainactivity,after clicking it,it opens a new activity(Acitivity2).
And in that activity I am opening the browser.Here are the codes-



public class Activity2 : Activity


protected override void OnCreate(Bundle savedInstanceState)

base.OnCreate(savedInstanceState);
this.OpenBrowser();





public void OpenBrowser()


var uri = Android.Net.Uri.Parse("https://google.com");
var intent = new Intent(Intent.ActionView, uri);
intent.AddFlags(ActivityFlags.NoHistory)
.AddFlags(ActivityFlags.NewTask);
Application.Context.StartActivity(intent);

protected override void OnNewIntent(Intent intent)

base.OnNewIntent(intent);





Now my question is after successful completion of opening the url in the browser,how to go back to the app,currently browser never closes.
Sorry it may be simple question,but i am really struggling with it










share|improve this question
























  • This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

    – Leo Zhu - MSFT
    Mar 25 at 2:22











  • Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

    – uncle_scrooge
    Mar 25 at 3:18











  • intent could open url,but could not control to returning to app

    – Leo Zhu - MSFT
    Mar 25 at 3:54











  • No its possible,how come users are logging out of the application and returning to browser

    – uncle_scrooge
    Mar 25 at 3:56











  • what do you mean "logging out of the application and returning to browser" ?

    – Leo Zhu - MSFT
    Mar 25 at 4:02













0












0








0








I have a button in my mainactivity,after clicking it,it opens a new activity(Acitivity2).
And in that activity I am opening the browser.Here are the codes-



public class Activity2 : Activity


protected override void OnCreate(Bundle savedInstanceState)

base.OnCreate(savedInstanceState);
this.OpenBrowser();





public void OpenBrowser()


var uri = Android.Net.Uri.Parse("https://google.com");
var intent = new Intent(Intent.ActionView, uri);
intent.AddFlags(ActivityFlags.NoHistory)
.AddFlags(ActivityFlags.NewTask);
Application.Context.StartActivity(intent);

protected override void OnNewIntent(Intent intent)

base.OnNewIntent(intent);





Now my question is after successful completion of opening the url in the browser,how to go back to the app,currently browser never closes.
Sorry it may be simple question,but i am really struggling with it










share|improve this question
















I have a button in my mainactivity,after clicking it,it opens a new activity(Acitivity2).
And in that activity I am opening the browser.Here are the codes-



public class Activity2 : Activity


protected override void OnCreate(Bundle savedInstanceState)

base.OnCreate(savedInstanceState);
this.OpenBrowser();





public void OpenBrowser()


var uri = Android.Net.Uri.Parse("https://google.com");
var intent = new Intent(Intent.ActionView, uri);
intent.AddFlags(ActivityFlags.NoHistory)
.AddFlags(ActivityFlags.NewTask);
Application.Context.StartActivity(intent);

protected override void OnNewIntent(Intent intent)

base.OnNewIntent(intent);





Now my question is after successful completion of opening the url in the browser,how to go back to the app,currently browser never closes.
Sorry it may be simple question,but i am really struggling with it







c# xamarin xamarin.android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 24 at 12:47







uncle_scrooge

















asked Mar 24 at 3:59









uncle_scroogeuncle_scrooge

781221




781221












  • This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

    – Leo Zhu - MSFT
    Mar 25 at 2:22











  • Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

    – uncle_scrooge
    Mar 25 at 3:18











  • intent could open url,but could not control to returning to app

    – Leo Zhu - MSFT
    Mar 25 at 3:54











  • No its possible,how come users are logging out of the application and returning to browser

    – uncle_scrooge
    Mar 25 at 3:56











  • what do you mean "logging out of the application and returning to browser" ?

    – Leo Zhu - MSFT
    Mar 25 at 4:02

















  • This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

    – Leo Zhu - MSFT
    Mar 25 at 2:22











  • Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

    – uncle_scrooge
    Mar 25 at 3:18











  • intent could open url,but could not control to returning to app

    – Leo Zhu - MSFT
    Mar 25 at 3:54











  • No its possible,how come users are logging out of the application and returning to browser

    – uncle_scrooge
    Mar 25 at 3:56











  • what do you mean "logging out of the application and returning to browser" ?

    – Leo Zhu - MSFT
    Mar 25 at 4:02
















This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

– Leo Zhu - MSFT
Mar 25 at 2:22





This is the equivalent of opening two apps, and you can only use the phone's physical return key or reopen the app,it's uncontrollable ! you could use webview to open the url,then you could control the rollback operation back to the app

– Leo Zhu - MSFT
Mar 25 at 2:22













Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

– uncle_scrooge
Mar 25 at 3:18





Anyhow I have to use intent for opening url.could you please tell me in mainactivity itself is it possible to use intent for opening URL and returning to app.

– uncle_scrooge
Mar 25 at 3:18













intent could open url,but could not control to returning to app

– Leo Zhu - MSFT
Mar 25 at 3:54





intent could open url,but could not control to returning to app

– Leo Zhu - MSFT
Mar 25 at 3:54













No its possible,how come users are logging out of the application and returning to browser

– uncle_scrooge
Mar 25 at 3:56





No its possible,how come users are logging out of the application and returning to browser

– uncle_scrooge
Mar 25 at 3:56













what do you mean "logging out of the application and returning to browser" ?

– Leo Zhu - MSFT
Mar 25 at 4:02





what do you mean "logging out of the application and returning to browser" ?

– Leo Zhu - MSFT
Mar 25 at 4:02












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320610%2freturn-back-to-app-from-browser-xamarin-android%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55320610%2freturn-back-to-app-from-browser-xamarin-android%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript