문제

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