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??
i'm using SDK 1.0 r2
-- 
Regards,
Sujay


-- 
Regards,
Sujay
Frank Lloyd 
Wright<http://www.brainyquote.com/quotes/authors/f/frank_lloyd_wright.html>
- "TV is chewing gum for the eyes."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to