私はphonegapで開発する初心者ですので、これが明白な答えであればごめんなさい。これは私のプロジェクトの最後の部分であり、機能していないのはプラグインだけです。Phonegap 1.4.1 WebIntentプラグインエラー「クラスが見つかりません」Android
「Android Intent経由でメールを送信できませんでした」というメッセージが表示され、logcatで次のエラーが表示されます。「エラー:ステータス= 2メッセージ=クラスがファイルに見つかりません:///android_asset/www/phonegap-1.4.1 .js:651 "
私はこれを理解できません。私は過去の日にそれをしています!
私はWebIntentの正しい名前空間を持っているのplugin.xml
プラグイン名= "webintent" 値= "com.borismus.webintent.WebIntent"
にプラグインを追加しました.javaファイル。
パッケージborismus.webintent;
私はindex.htmlでwebintent.jsファイルを参照しています。
以下は、プラグインを使用する機能です。 関数emailxmlfile(){
var subject = "Sports Code Xml Edit List" + filedate.toDateString();
var body = "";
if(!window.plugins || !window.plugins.webintent){
alert('Unable to find webintent plugin');
}else{
var extras={};
extras[WebIntent.EXTRA_SUBJECT] = subject;
extras[WebIntent.EXTRA_TEXT] = body;
window.plugins.webintent.startActivity({
action: WebIntent.ACTION_SEND,
type: 'text/plain',
extras: extras
}, function() {}, function(e) {alert('Failed to send email via Android Intent');});
}};
任意の助けを大幅に高く評価されるだろう。
package borismus.webintent;
が、で定義された:おかげ
http://stackoverflow.com/questions/9820675/gson-noclassdeffounderror-after-adt-and-sdk-tools-update-to-v17/9820881#9820881または最新のphonegapをダウンロード – Selvin
どのphonegapを使用していますか? –
私は現在phonegap 4.1を使用しています – M0nk3y1089