mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Merge pull request #435 from svendroid/webintents-email
Android Webintents Emailaddress
This commit is contained in:
@@ -130,8 +130,10 @@ public class WebIntent extends Plugin {
|
||||
//allowes sharing of images as attachments.
|
||||
//value in this case should be a URI of a file
|
||||
i.putExtra(key, Uri.parse(value));
|
||||
}
|
||||
else {
|
||||
} else if(key.equals(Intent.EXTRA_EMAIL)){
|
||||
//allows to add the email address of the receiver
|
||||
i.putExtra(Intent.EXTRA_EMAIL, new String[]{value});
|
||||
} else {
|
||||
i.putExtra(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ WebIntent.ACTION_VIEW= "android.intent.action.VIEW";
|
||||
WebIntent.EXTRA_TEXT = "android.intent.extra.TEXT";
|
||||
WebIntent.EXTRA_SUBJECT = "android.intent.extra.SUBJECT";
|
||||
WebIntent.EXTRA_STREAM = "android.intent.extra.STREAM";
|
||||
WebIntent.EXTRA_EMAIL = "android.intent.extra.EMAIL";
|
||||
|
||||
WebIntent.prototype.startActivity = function(params, success, fail) {
|
||||
return PhoneGap.exec(function(args) {
|
||||
|
||||
Reference in New Issue
Block a user