and teh how to upload image to server from android??

On Thu, Feb 10, 2011 at 1:33 AM, Kevin Duffey <andjar...@gmail.com> wrote:

> Email intent.. which you can use to bring up email app and attach photo to
> it, to/subject/etc lines
>
>             final Intent i = new Intent(Intent.ACTION_SEND);
>             i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>             i.setType("image/jpg");
>             i.putExtra(android.content.Intent.EXTRA_EMAIL,
>                     new String[] {"yourem...@yourcompany.com" });
>             i.putExtra(android.content.Intent.EXTRA_SUBJECT,
>                     "Subject");
>             i.putExtra(android.content.Intent.EXTRA_TEXT,
>                     "Body of email here");
>
>             // attach saved photo from sdcard location
>             i.putExtra(Intent.EXTRA_STREAM,
> Uri.parse("file:///sdcard/data/photo.jpg"));
>             // pop up the email program for user to preview and send from
>             startActivity(i);
>
> As for your first issue, in your camera takepicture handler, you save the
> image to whever you want. That is the path you use in the Uri.parse() call
> above.
>
>
>
> On Tue, Feb 8, 2011 at 11:34 PM, Jayanthi <jaia...@gmail.com> wrote:
>
>> Yes , I have seen loads of example but now I am trying this for
>> Samsung Galaxy Tab ,here my problem is I couldn't able to set Image
>> path to ImageButton
>> Thanks,
>>
>> On Feb 9, 1:57 am, Joe McCann <joseph.is...@gmail.com> wrote:
>> > Seriously, did you google it?  There are loads of examples.
>> >
>> > On Feb 8, 3:12 am, Jayanthi <jaia...@gmail.com> wrote:
>> >
>> > > Hi,
>> > >     I am new to android I want to send mail with image attached to it
>> > > I need solution for two question
>> > > 1.How to get the path of image saved in sd card using camera preview
>> > > 2.How to send mail by attaching image
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mobile Developer
(Android,iphone,Blackberry,J2ME,brew,symbian)
mobile :
085722945257
email :
kevin.r.octav...@gmail.com
arsenal_a...@yahoo.co.id
blog :
kevinroctavian.wordpress.com

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

Reply via email to