I am trying to create a feature in my Android App which will let users share the link to my app in android market to whoever they want to email it to.
In preferences.xml I have created this as below
<PreferenceScreen
android:title="Share the App"
android:summary="Share the App with your friends.">
<intent android:action="" />
</PreferenceScreen>
I am not sure what intent should I put here and how I do I handle it when Share the App is clicked in PreferenceScreen. I want to open Email and pre-populate it with a subject and the Android Market link of the App in the subject.
The user will enter the email and send it to their friends.
Here is what I did and it worked.
preferences.xml
Then I added this to the AndroidManifest.xml
Then I created a ShareApp.java and added the code here.
And it worked!! By the way the UrSettings class is extended from PreferenceActivity.