I wanted to add an email to the app where is my car.
I have sucessfully made where is my car work, I have edited it to fit my project.
now I want to add the code below...
Start the mailer with pre-addressed message
To start the Android mailer application, use the action android.intent.action.VIEW . You can use Activity starter's 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 example, if you specify:
Action: android.intent.action.VIEW
then starting the activity will bring up the mailer, with the addressee filed in.
If you specify:
Action: android.intent.action.VIEW
<< this is the example of course>>
then starting the activity will bring up the mailer, with the addressee, the subject, and the body filled in. You can use the mailer to edit these before sending the message, if you prefer.
The DataURI here must be a URL encoded message designed to work with the internet mailto service. Search the Web to find appropriate documentation and tools for creating these, for example <<Elements of a Mailto: URL>> this link is broken
Show a map for a location
If you know the latitude and a longitude of a location, you can show a map using an activity starter with these properties to show a map of the area:
Action: android.intent.action.VIEW
DataUri: geo:37.8,-122.23?z=23
<< actually I would prefer the AI@ app put the remembered GPS location in the email, or as an attachment>>
From here to end is not relevant to me>>
The format of the DataURI is specific to the app. In this example, the URI specifies a z (zoom) of 23, which is the largest zoom value. Zoom value is optional and ranges from 1 (the entire Earth) to 23.
If you know the zip code, you can set the activity starter properties as follows:
Action: android.intent.action.VIEW
DataUri: geo:0,0&q=94043
If you have a street address, you can use a DataUri that encodes the address with a scheme called URL encoding:
Action: android.intent.action.VIEW
DataUri: geo:0,0&q=5000% 20MacArthurBlvd%20Oakland%2CCA
Generally in URI encoding the only characters you have to replace are spaces ( %20 ) and punctuation marks, such as comma ( %2C ) and period ( %2E ).
here is code for email button
ActivityStarter2=android.intent.action.VIEW
Action
ActivityClass=com.google.gmail.gmailactivity
ActivityPackage=com.google.android.apps.gmail
DataType
( this is a substitute email for now)
ExtraKey
ExtraValue
ResultName
What I am looking for is how to do the blocks code,
If button Send email out put is pushed then....
I have not done blocks on my own yet, I am looking for help here not some one to write this code, just a shove in the correct direction.
I do have a working APK with out the emailer. I hope this is not too long winded.
Thank you again