Skip to first unread message

Nathan Campos

unread,
Nov 21, 2015, 1:00:45 PM11/21/15
to MIT App Inventor Forum
I'm having trouble with the application you made ​​that is sending email, when I try to send an email to forehead, he give an error 601 : the Corresponding activity was found , and I do not know what's going on .

my action: android.intent.action.VIEW

DataUri :malito

SteveJG

unread,
Nov 21, 2015, 4:56:35 PM11/21/15
to MIT App Inventor Forum
You said "trouble with the application you made ​​that is sending email," we do not know what application you are refering to.  



I am not sure you can send an eMail this way using the emulator. I think you need to be developing on a device and that is the reason you get a 601 error. Compile the apk and try it on a phone/Tablet and your code might work. Does it?

I note you do not have a complete url here  DataUri :malito  ; you need to complete the url as shown below.

For reference you might look at the MIT documentation:


Start the mailer with pre-addressed message

To start the Android mailer application, use the VIEW action and set the DataUri property to specify the recipient, the subject, and the body of the message. In each case, starting the activity will bring up the Android mailer, and you can complete the message and then press "Send".

For instance, if you specify:

Action: android.intent.action.VIEW

DataUri: mailto:sa...@northpole.com

then starting the activity will bring up the mailer, with the addressee filled in.  If you instead specify:

Action: android.intent.action.VIEW

DataUri: mailto:sa...@northpole.com

then starting the activity will bring up the mailer, with the addressee filled in. You can use the mailer application to edit this before sending the message, if you prefer.

You can also specify the subject line and the message text with the aid EXTRA properties.  For example, to send email when a button is pressed, you could use:

Observe how EXTRAS is a list, where each element is a key, value pair.

Taifun

unread,
Nov 21, 2015, 5:12:47 PM11/21/15
to MIT App Inventor Forum
How to send an eMail

It does not look like you have used the forums yet, as a search using the search box above would have returned several threads about this topic.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         



Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.

Reply all
Reply to author
Forward
0 new messages