From 310766180fe755d1bccbf352da389942398f9f31 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Fri, 25 Jun 2010 14:31:47 -0700 Subject: [PATCH] Forgot to add mailto to the activities launched by intent --- framework/src/com/phonegap/DroidGap.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 4f78a27c..051d467b 100644 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -223,6 +223,12 @@ public class DroidGap extends Activity { startActivity(intent); return true; } + else if(url.startsWith("mailto:")) + { + Intent mail = new Intent(Intent.ACTION_SENDTO, Uri.parse(url)); + startActivity(mail); + return true; + } else { //We clear the back button state