How To Open My Application When App Link Is Clicked?
What I want is to share the link of specific page of my application. Suppose I am in a profile page of some user in my app and I want to share that user to some of my friends so I
Solution 1:
Add the following intent-filters to your activity declaration, in the AndroidManifest of your project :
<intent-filter><actionandroid:name="android.intent.action.SEND"/><categoryandroid:name="android.intent.category.DEFAULT"/><dataandroid:mimeType="text/plain"/></intent-filter>
Now, in the onCreate(), onResume() or onNewIntent() method of your activity lifecycle, you can use the getData() of the intent that has fired your activity.
Post a Comment for "How To Open My Application When App Link Is Clicked?"