Can someone please suggest a solution for this one. To be able to email a file without getting an option to message or use some other sharing mechanism looks like a pretty valid use case to me.
On Mon, Apr 6, 2009 at 3:42 AM, Gaurav Agarwal <[email protected]>wrote: > I will like to restrict the user to Email only, user can choose which one. > > > On Mon, Apr 6, 2009 at 3:00 AM, Andrew Stadler <[email protected]> wrote: > >> >> We can work out ways to deal with this question, but I would ask >> first: How restrictive are you trying to be? >> >> For example the user might have a Gmail account set up, and both >> platform Email and K9 installed & configured. >> >> Are you sure you want to restrict them to Email only? >> >> The user experience design for the intent resolver is to allow the >> user to control behaviors like this, so it's worth thinking through >> the desired use cases before adding restrictions. >> >> --Andy >> >> >> On Sun, Apr 5, 2009 at 10:10 AM, Gaurav <[email protected]> wrote: >> > >> > I need to send an image file on my sdcard using email in my >> > application. Note that I don't want user to get option to use >> > messaging or other ways to send the file. My current code, as shown >> > below, gives option of both email and messaging whereas I want the >> > user to get only emailing option. How do I do this? >> > >> > Intent intent = new Intent(Intent.ACTION_SEND); >> > intent.addCategory(Intent.CATEGORY_DEFAULT); >> > intent.setType("image/*"); >> > intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:/sdcard/mydir/ >> > myimage.jpg")); >> > startActivity(intent); >> > >> > Gaurav >> > Software Developer >> > http://SilkenMermaid.com >> > > >> > >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

