Help with google uploader application

All your problems with Audio, Video and Images.

Help with google uploader application

Postby sujay » Thu May 28, 2009 7:35 am

Hi everyone,
i'm trying to build an application that captures an image & shares it...

'm calling the inbuilt camera application with the following code
<code>
Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(i, 0);
</code>

N my on activity result is
<code>
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 0 && resultCode == Activity.RESULT_OK) {

Intent i = new Intent(Intent.ACTION_SEND);
i.setType("image/jpeg");
i.putExtras(data);
startActivity(i);
}
finish();
}
</code>
whenever i select the upload button i get a toast sayin
couldn't send photo data not available...

anyone can temme wats goin wrong??
'm usning SDK 1.0.r2
--
Regards,
Sujay
sujay
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed May 20, 2009 11:01 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 7 guests