Starting an application from the Lollipop browser - HOW TO?

J Jacques Gourmelen 3 years 7 months ago
8 1 0

Regardless of the below approach - I.e. Method A or Method B - used to launch my application, the Lollipop browser inevitably raises a net::ERR_UNKWON_URL_SCHEME error
Note: such difficulty is not observed while using the KitKat Browser.
 

HTML page used to launch my app

Method A
Method B

 
 

AndroidManifest.xml
MainActivity.java

                                                                                                                                                                       
@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_main);    txtInfo = (TextView)findViewById(R.id.txtInfo);    Intent intent = getIntent();    if (intent != null){        String strAction = intent.getAction();        Log.d(TAG, "Intent action = " + strAction);        Uri launchUriPassedIn = intent.getData();        if (launchUriPassedIn != null) {            txtInfo.setText(launchUriPassedIn.toString());            Log.d(TAG, "URI = " + launchUriPassedIn.toString());            String strQuery = launchUriPassedIn.getQuery();            Log.d(TAG, "URI Query = " + strQuery);        }        else {            txtInfo.setText("No intent data found!");            Log.d(TAG, "No intent data found!");        }    }    else {        txtInfo.setText("No intent found!");        Log.d(TAG, "No intent found!");    }}

 
Any hint is welcome!
Thank you.

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

For method B, you only have one forward slash in the URL scheme, is that just a typo in the question?

CONTACT
Can’t find what you’re looking for?