I'm using this intent to let the user create a contact:

intent = new Intent(Intent.ACTION_INSERT,Contacts.People.CONTENT_URI);
this.startActivityForResult(intent, CREATE_CONTACT_REQUEST);

I use the result of this intent to know uri for the new contact they
created. This works on every android device I've tested except for the
Hero, probably because they have their own Contacts app
implementation.

Here's the code I use to retrieve the result of the action:

    protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
        if (requestCode == CREATE_CONTACT_REQUEST) {
            if (resultCode == RESULT_OK) {
                Uri newContactUri = data.getData();
       ....


On every other device when: resultCode == RESULT_OK  it's safe to
assume that data contains the uri for the newly created contact.
However on the Hero they return RESULT_OK, yet data is equal to null!

Does anybody know how I can figure out the URI for the newly created
contact on the Hero?

Also is anyone aware of a place to report bugs to HTC?
I searched around on their developer site http://developer.htc.com/
but didn't find anything.


Thanks a bunch.

-Jake

-- 
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

Reply via email to