-1

i have developed an app ,which has to get opened when user enters url like myappurl:// in browser like chrome or internet.Can this happen in android devices?if it so how please guide me in this i have referred below links but no luck.

Not getting opened installed Android App via browser in Android

Launch custom android application from android browser

my requirement is very similar to this Launching custom Android application from Android browser / Chrome

i tried this things but it opens website of that address i want to make my app to get opened

Community
  • 1
  • 1
allDroid
  • 395
  • 1
  • 7
  • 21

1 Answers1

0

Intent filters for ACTION_VIEW works only for clicking URLs and not copying or typing them in the address bar of the browser.

browsers generate respective intent only on URL click events.

Note : this observation is for chrome and default browser of android

Rahul Tiwari
  • 5,931
  • 2
  • 41
  • 66
  • 1
    there is no InternetExplorer on Android! – Kitesurfer Oct 24 '15 at 10:57
  • my observation is for chrome and default browser of android. may be browsers you have mentioned have implemented handling of `ACTION_VIEW ` from address bar, so if may differ from browser to browser and one can not do much about it. – Rahul Tiwari Oct 24 '15 at 10:58
  • @Rahul Tiwari is there any other way of doing this? when i googled about it said me to use iframes with src, refer this link https://developer.chrome.com/multidevice/android/intents but even after googling about it i didnt get any idea on how to do this – allDroid Oct 24 '15 at 11:05
  • @Kitesurfer i mean default internet explorer installed in android devices – allDroid Oct 24 '15 at 11:06
  • as I said it will work for click of URL on those browsers. so you can change your workflow in a manner that involves clicking a URL instead of entering one. – Rahul Tiwari Oct 24 '15 at 11:08
  • @Rahul Tiwari thanks for your explaination after reading it i was then able to understand that it works only for clicking URLs and not copying or typing them. – allDroid Oct 24 '15 at 11:18