1

is there a solution to call a mobile app via a link in a web page(my web page is a web view in a mobile app). For example, I want to call facebook app when tap on a link.

Fatemeh Gharri
  • 283
  • 1
  • 5
  • 16
  • 1
    possible duplicate of [Android SDK WebView call Activity](http://stackoverflow.com/questions/4846296/android-sdk-webview-call-activity) – Morrison Chang Nov 11 '14 at 05:30

2 Answers2

0

You need to create an <intent-filter>. See Launch custom android application from android browser.

For the simplest case, you need to add something like this to your AndroidManifest.xml:

<intent-filter>
  <data android:scheme="http" android:host="your-url-.com"/>
  <action android:name="android.intent.action.VIEW" />
</intent-filter>
Community
  • 1
  • 1
Brittany
  • 312
  • 5
  • 12
0

You have to add an Intent filter in Manifest file like this -

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data
        android:host="www.tamrakar.in"
        android:path="/test"
        android:scheme="http" />
</intent-filter>

Hope this helps.

Ashish Tamrakar
  • 800
  • 10
  • 24