CodePudding user response:
Url that you see if it contains the WWW. Or a sign of http://If the url, you through the intent to jump
Uri Uri=Uri. Parse (" your site ");
Intent Intent=new Intent (Intent. ACTION_VIEW, uri);
StartActivity (intent);
CodePudding user response:
Scan the value judgment of whether the website, you can put the value to be a regular,Open the url is the url, you will get, how to open the second floor,
CodePudding user response:
Usually, qr code should be a small program, scan the qr code common operation is to install code or open a webpage, if shows the url, is likely to be the right thing to do is delete the contents of this qr code related, and after careful treatment, if must want to have a look at the pages, usually have to do is click the qr code or url, if a web page can't display, is usually a security issue, related technology extremely reliable, does not exist because of technical problems can't display web pages, so, must be a security issue,CodePudding user response:
In your website with http://Or https://
Pro try effective

CodePudding user response:
With http://or https://when you generate qr code typeCodePudding user response:
Simple and violence
If (st. startsWith (" HTTP ")) {
//url, a jump way upstairs
} else {
//text
}