Search code examples
androidlistsharing

How to handle parameters in activity if user select my application from sharing list?


I am now able to display my android application in default sharing list of applications when user click on email address from gmail account on android mobile.

But how can i get the email address in my applications to field?

Thanks.


Solution

  • Read Sharing Content training, in particular Handle the Incoming Content.

    String sharedText = intent.getStringExtra(Intent.EXTRA_EMAIL);