0

I have implemented a simple application using WebView. Now, what i want to do is; when i click on a link, say a link in an email, i want my app to appear on dialog box as an option along with chrome and firefox. I have made some research myself but i couldn't find a proper answer. Is what i am trying to do possible? And if it is, how can i do it? Some tips to would be great.

caneru
  • 189
  • 1
  • 1
  • 13

1 Answers1

0

Add your Activity which contains WebView in your manifest like below :

<activity
        android:name=".ActivityName"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <action android:name="yourpackagename.LAUNCH" />

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

            <data android:scheme="http" />
            <data android:scheme="https" />
        </intent-filter>
    </activity>
Akshay Bhat 'AB'
  • 2,567
  • 3
  • 16
  • 29