Hello,
I am trying to list out the following email clients/social
networking client in a menu by using following code:
final Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/plain");
Intent i = Intent.createChooser(emailIntent, "Share Offer");
startActivity(i);
The above piece of code works on device well, but it lists out all
the available email clients in the device.
- Bluetooth
-Facebook
-Gmail
-Messaging
-Twitter
As per my requirement, I do not want 'Bluetooth & Messaging' in the
list.
- How can I remove the non-required items from the Menu?
- Can I insert a customized menu item in the above menu created by
Intent.createChooser(..) ?
- How can I handle the Menu Item Click in this case? For examlpe: If
user clicks "Gmail", how do I handle the onClick event?
Thanks in advance.. will appreciate any help on this.
Regards,
DK
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en