var application = require("application");

function dial(telNum,prompt) {

	try {
		var intentType = android.content.Intent.ACTION_CALL;
		if (prompt) {
			intentType = android.content.Intent.ACTION_DIAL
		}

		var intent = new android.content.Intent(intentType);

		intent.setData(android.net.Uri.parse("tel:" + telNum));

		application.android.foregroundActivity.startActivity(intent);
		return true;

	} catch(ex) {
		//alert("Unable to dial");
		//console.log("phone.dial failed: " + ex);
		return false;
	}
}

function sms(smsNum, messageText) {
	try {
		var intent = new android.content.Intent(android.content.Intent.ACTION_VIEW);
		intent.setData(android.net.Uri.parse("sms:" + smsNum));
		intent.putExtra("sms_body", messageText);
		application.android.foregroundActivity.startActivity(intent);
		return true;

	} catch(ex) {
		//alert("Unable to open sms");
		//console.log("phone.sms failed: " + ex);
		return false;
	}
}

exports.dial = dial;
exports.sms = sms;

@@ -544,23 +544,191 @@
 Text) %7B%0A
+    return new Promise(function (resolve, reject)%7B%0A        if(!smsNum instanceof Array)%7B%0A            reject(%22Numbers are not in an array!%22);%0A        %7D%0A        %0A    
 %09try %7B%0A
+    
 %09%09var in
@@ -802,300 +802,368 @@
 W);%0A
-%09%09intent.setData(android.net.Uri.parse(%22sms:%22 + smsNum));%0A%09%09intent.putExtra(%22sms_body%22, messageText);%0A%09%09application.android.foregroundActivity.startActivity(intent);%0A%09%09return true;%0A%0A%09%7D catch(ex) %7B%0A%09%09//alert(%22Unable to open sms%22);%0A%09%09//console.log(%22phone.sms failed: %22 + ex);%0A%09%09return false;%0A%09%7D
+            intent.putExtra(%22address%22, smsNum.join(%22;%22));%0A    %09%09intent.putExtra(%22sms_body%22, messageText);%0A            intent.setType(%22vnd.android-dir/mms-sms%22);%0A    %09%09application.android.foregroundActivity.startActivity(intent);%0A            resolve(%7B%0A                response:%22success%22%0A            %7D);%0A%0A    %09%7D catch(ex) %7B%0A            reject(ex);%0A    %09%7D%0A    %7D);
 %0A%7D%0A%0A

Update index.android.js