0

I have following activity declared in manifest file The activity is also launcher activity

<activity
        android:name=".DashBoard"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        <intent-filter>
            <data
                android:path="/page"
                android:host="www.example.com"
                android:scheme="http" />
            <action android:name="android.intent.action.VIEW" />

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

When I open http://www.example.com/page the app doesn't launch

Please help

Karthik K M
  • 619
  • 2
  • 9
  • 24
  • How exactly are you trying to start the activity with the URL? And, what happens when you do that, instead of your app launching? – CommonsWare Nov 10 '16 at 17:33
  • [This](http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser) should help – Ahmed I. Elsayed Nov 10 '16 at 17:49
  • [This](http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app/3472228#3472228) should too – Ahmed I. Elsayed Nov 10 '16 at 17:51
  • 1
    @CommonsWare when I click on the link (http://www.example.com/page) it opens browser. It doesn't show option to open app – Karthik K M Nov 11 '16 at 04:10
  • "when I click on the link" -- where is that link? In a Web page? In a text message? In an email? In the address bar of the browser? Somewhere else? – CommonsWare Nov 11 '16 at 14:33
  • 1
    @CommonsWare in a text message – Karthik K M Nov 17 '16 at 10:29
  • Try using a link in a Web page. Or, try using `adb shell am`. Perhaps there is something about your text messaging client that is causing it to bypass your ``. – CommonsWare Nov 17 '16 at 11:07

0 Answers0