Setting contact picture from application...

Put your problem here if it does not fit any of the other categories.

Setting contact picture from application...

Postby dazbradbury » Sun May 03, 2009 4:07 pm

Hi,

I've been trying to use:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. Intent i = new Intent(Contacts.Intents.ATTACH_IMAGE);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


But to no avail, I get an ActivityNotFoundException.

I assume an intent is the appropriate way of doing this, and I have other intents working, it just seems this one doesn't want to work..

Anyone have a solution?
Cheers,
Daz.
dazbradbury
Freshman
Freshman
 
Posts: 4
Joined: Sun May 03, 2009 4:03 pm

Top

Postby dazbradbury » Sun May 03, 2009 6:42 pm

I should note I'm using:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. i.setData(Uri.fromFile(app.getFileStreamPath("contact.jpeg")));
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Which may be my downfall?
Cheers,
Daz.
dazbradbury
Freshman
Freshman
 
Posts: 4
Joined: Sun May 03, 2009 4:03 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests