Question

I have created Intent chooser for my application. I want to send email and sms by this. My code is here http://pastie.org/8966227 . But I can get the result properly. The control always comes into second loop only. Any body can help me? thanks in advance.

Was it helpful?

Solution

You can't check which intent has user selected.

Unless you create your own implementation of the dialog for the activity selection.

To create such dialog you need to use PackageManager and its queryIntentActivities() function. The function returns List.

More information is available here and here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top