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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Add to Addressbook : Action not supported

Hi,

 

I have ported an android app to BB 10. I am trying to add a Contact from my App to Native Addressbook.

 

It fails to add and gives me a prompt : 

 

Action Not Supported

Intent { act=android.intent.action.EDIT dat=content://com.android.contacts/raw_contacts/13flg=0x4000000 }

 

//------ This is my Android Code behind --------------//

Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setData(nabUri);
startActivityForResult(intent, 0);

//-----------------------------------------------------------------//

 

Please let me know if anyone has faced this issue or any any solution for above.

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Add to Addressbook : Action not supported

Hey Kanak,

 

Could you please clarify, are you trying to add a contact to the native addressbook via an Android app? 

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Highlighted
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: Add to Addressbook : Action not supported

Hi Justin,

 

Yes I am tryying to add a Contact to the native addressbook via Android App.

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Add to Addressbook : Action not supported

Currently, contacts integration between Android and native BB10 is not possible.

 

We are looking to implement this functionality for a future release, but as for now, you are out of luck.

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Add to Addressbook : Action not supported

[ Edited ]

Syncing contacts written in the Android layer to the native contact app will be available in the next OS update (A7 / 10.1). I don't know about that Intent though.

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: Add to Addressbook : Action not supported

Thanks mreed

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro