简体   繁体   中英

How to forcefully open a link in browser rather than in web-view

I have made qr code which points to my website. my website is heavily using javascript and jquery.

My problem is whenever i scans the qr code with third party android "qr code reader" application it opens the link in WEB view and not in web browser. with web-view my site is not working properly since it doesn't support java-script and jquery by default. i can't enable the javascript in web-view because it is a third party application and i don't have control on it.

I want to know that if there is any way to enable javascript and jquery in third party android application or can we force the qr code to open in web browser?

Thanks,

You may try this:

Intent intent= new Intent(Intent.ACTION_VIEW,Uri.parse(YOUR_URL));
startActivity(intent);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM