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

Native Development

Reply
Developer
shreyansjain
Posts: 146
Registered: ‎07-03-2013
My Device: BB 9360

get emailAddress from AccountKeyID?

Is it possible to get the emaiil address using the accountKeyID in bb::smileytongue:im::account?

I can see the display name, but want to know the email address so that the account on the device can send itself an email.

 

Thanks

 

S.

Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30

Re: get emailAddress from AccountKeyID?

Why would you want to send the device an email? If you are just trying to create a notification you can use the notification API. If you are trying to let the user send an email to a specfic address, you may want to give the user a choice and use the Contact Picker to let them pick who they want to email.

 

In answer to your question though, I don't believe so. Might be worth a feature request: DIT

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
shreyansjain
Posts: 146
Registered: ‎07-03-2013
My Device: BB 9360

Re: get emailAddress from AccountKeyID?

Thank you Paul. I will look into the notification API.
The reason I wanted was to send device itself an email if some Conditions in my app matches.
Now I just used a textfield for user to input an email and using validator and reed to check if the text entered is indeed an email. Ofcourse, user can enter bogus emails.
Thanks