0

I'm developing an app and one thing I would like to do it allow users to send/share data from the app with others vi MMS or by email. I have been searching but haven't found anywhere to get started on solving the problem.

Basically, I am going to programatically draw the data from an SQLite DB and put it into a delimited file (similar to a .csv) then I want to allow the user to 'export' or send it via MMS or Email. Does anyone have any tips on how I can get my program to open the messaging application and add the attachment at the users direction? Really just need some beginning info so I have a place to start.

soulshined
  • 9,612
  • 5
  • 44
  • 79
James Y
  • 67
  • 1
  • 7
  • 1
    James, this is basically duplicated in numerous other places. Do a search for "android email intent attachments". One of the first in Google is: http://developer.android.com/guide/components/intents-filters.html. Give the file attachment your own file extension. Then register an intent filter saying that your app handles that extension so the receiver can open it in your app. http://developer.android.com/guide/components/intents-filters.html – Erik Nedwidek May 12 '13 at 17:02
  • Thanks Erik! Must have been some poor search syntax on my part. – James Y May 12 '13 at 17:06

1 Answers1

0

Here is what you are looking for. This should be a good start

launch sms application with an intent

Community
  • 1
  • 1
soulshined
  • 9,612
  • 5
  • 44
  • 79