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
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

[ Edited ]

So it looks like contacts are being handled at the Android level, but not populated into the address book. So why say you support it?

BlackBerry Development Advisor
Posts: 98
Registered: ‎11-21-2008
My Device: Z10
My Carrier: Bell

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Hey Martin,

 

Could you please forward the link to the documenation in question, or are you referencing the roadmap?

James Dreher
BlackBerry Development Advisor
Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Yup, theres a link in an earlier reply. Here it is again:

Unsupported APIs for BlackBerry 10 -> Software Features

http://developer.blackberry.com/android/apisupport/unsupportedapi_blackberry10_software_features.htm...

 

That page says:

"Contacts added or modified by android applications are currently not synchronized with the device address book"

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Just to update the thread:

 

Theres a new runtime update (A7) coming out that hopefully resolves this:

 

"In addition to adding contact information to a new or existing contact, contacts can be selected from the native BlackBerry 10 contacts application. Edits to contact information are synchronized between the Android Runtime and the native BlackBerry 10 contacts app."

 

https://developer.blackberry.com/android/tools/roadmap

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Clarification:

 

We need to be able to read conacts by querying the ContentResolver:

String[] projection = new String[] { RawContacts._ID, RawContacts.VERSION };
ContentResolver contentResolver = context.getContentResolver();
return contentResolver.query(RawContacts.CONTENT_URI, projection, whereClause, null, null);

 

Developer
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

In the 10.1 OS released to developers, the reading is working now without any sort of picker. However writing contacts is still broken. The new contacts created do not appear in the native contact application.

New Contributor
Posts: 7
Registered: ‎02-23-2013
My Device: BB10 Dev Alpha B
My Carrier: Idea

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Mreed, thanks for updating that read is now working. I am also waiting for the write contact feature.

Contributor
Posts: 18
Registered: ‎05-01-2013
My Device: BlackBerry Z10
My Carrier: NA

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

Hi mreed,

 

Does it mean that, in OS 10.1, the native address book can be read from the Android app ? 

Thanks.

Developer
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: Not able to read contacts from BB10 Dev Alpha (Android ported app)

tl;dr: Yes OS 10.1 can read contacts

I have currently installed 10.1.0.1483 on my Dev Alpha C. And my Android ported application is able to read the contacts now.


A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter