Make the Share plugin work with Cordova-1.9.0

This commit is contained in:
Thejaswi Puthraya
2012-07-03 11:31:23 +05:30
parent b0981f8072
commit 0ddb4fe844

View File

@@ -34,7 +34,7 @@ public class Share extends Plugin {
sendIntent.setType("text/plain");
sendIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
sendIntent.putExtra(android.content.Intent.EXTRA_TEXT, text);
this.ctx.startActivity(sendIntent);
this.cordova.startActivityForResult(this, sendIntent, 0);
}
}