質問

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