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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현