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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top