Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
New Contributor
Posts: 6
Registered: ‎01-05-2013
My Device: BlackBerry Playbook
My Carrier: T-Mobile

Mail Intent

What is the right way to call email application by intent with mailto, subject and body in both Blackberry Playbook and Blackberry 10?

 

My current code:

Intent intent = new Intent(Intent.ACTION_SENDTO);
Uri data = Uri.parse("mailto:<address>?subject="+URLEncoder.encode(<subject>) , "utf-8") + "&body="+<body>);
intent.setData(data);
startActivity(intent);

 

This work in playbook but not in Blackberry 10.

 

Thanks