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.

Était-ce utile?

La 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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top