3

I add a filter in Manifest to enable browser to launch my app, like this

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

            <data
                android:host="test"
                android:scheme="myapp" />
        </intent-filter>

But I got the re-direction address with params:"myapp://test?param1=123&param2=456"

How can I open my app and get these parameters?

Bubble.C
  • 60
  • 1
  • 9
  • http://stackoverflow.com/questions/2958701/launch-custom-android-application-from-android-browser and check this https://developer.chrome.com/multidevice/android/intents – Lalit Pratap Singh Mar 21 '16 at 11:25

1 Answers1

0

We get the params as extras in our activitie's onCreate method. To access it use :

getIntent().getExtras().getString("param1");

vjamit
  • 185
  • 1
  • 2
  • 10