hi jaimin,
                i cant give u the whole code bec i'm not the owner... wat u
could do is send me ur code & i'll make the necessary changes.... or jus
make use of the code posted earlier... jus add
i.putExtra(Intent.EXTRA_STREAM, <uri to read from>);
to the snippet in onactivityresult...

On Thu, Jun 4, 2009 at 9:31 AM, jaimin <[email protected]> wrote:

>
> hi sujay krishna
> i am new to android and i would also like to devlop applciation which
> captures the images and save that images for upload so can u plz give
> me your code for that application because i tried a lot but i sitll
> can't save that images.so
> plz its urgent for me to complete that application.
>
> regards
> jaimin.
>
> On May 28, 4:24 pm, Sujay Krishna <[email protected]> wrote:
> > i found my mistake....
> > i forgot to add the EXTRA_STREAM in the extras...
> > now its workin fine...
> > if anyone is need of such an app jus send me a request...
> >
> > On May 28, 11:35 am, Sujay Krishna Suresh <[email protected]>
> > wrote:
> >
> > > Hi everyone,
> > >                i'm trying to build anapplicationthat captures an image
> &
> > > shares it...
> > >  'm calling the inbuiltcameraapplicationwith 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
> > > <http://www.brainyquote.com/quotes/authors/b/bette_davis.html>
> >
>


-- 
Regards,
Sujay
H. L. Mencken <http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html>
- "Nobody ever went broke underestimating the taste of the American
public."

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