Android Webpage Display Using Intent

I use below code to display webpage

Uri uri = Uri.parse("http://myurl"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); 

but when I click the back button to go to the previous one, it’s not loading the previous page, but loading the same page

This happens with some URLs, not all

Why is this happening? Any solution ???

+4
source share
1 answer

What url are you clicking? This can happen if you try to send users to sites like Twitter that use the redirect scheme for themselves for SEO / AJAX or send the user to a mobile page. In a normal browser, it forces you to hit twice twice to return to the original page. The same goes for Android.

If this is what happens here, I’m afraid that the decision is not to send users to pages that do this and / or notify webmasters on abusive sites about the problem.

+4
source

Source: https://habr.com/ru/post/1333129/


All Articles