8

Can anybody please tell me how to open android application from URL in android.

I am using following method to open application in android but it doesn't works for me.

<data android:scheme="application"/>

I am passing source of URL "application://[RandomText]"

Is it correct way to open application?

Jayeshkumar Sojitra
  • 2,501
  • 4
  • 31
  • 44

2 Answers2

1

Try this:

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data android:host="www.put-your-website.com" />
    <data android:scheme="https" />
    <data android:scheme="http" />
    <data android:pathPattern=".*" />
</intent-filter>
Ashish Jaiswal
  • 804
  • 1
  • 9
  • 23
0

Read about BroadcastReceiver. An application must register itself to listen to intents sent using sendBroadcast(). After this the user is presented with a pop up to launch that application. (Similar to send functionality where you can choose to send using different applications)

pshirishreddy
  • 746
  • 6
  • 20