私のAndroidPhoneGapアプリでは、createchooserを使用して、プラグインを使用してモバイルデバイスからすべての共有アプリを取得しました。共有は正常に機能していますが、postToWallページのテキストボックスに入力しようとすると、Facebookアプリが自動的に閉じ、logcatにエラーが表示されます。私はsamsunggalaxytab(android 2.2)でこの問題に直面しています。
これが私のコードです:
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/plain");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,"www.google.com");
this.ctx.startActivity(Intent.createChooser(emailIntent, "Share:"));
これが私のlogcatエラーです:
01-23 07:08:42.865: I/dalvikvm(4054): threadid=3: reacting to signal 3
01-23 07:08:42.875: I/dalvikvm(4054): Wrote stack traces to '/data/anr/traces.txt'.
これを解決するのを手伝ってください。よろしくお願いします。