私のアプリにはバグがあり、同じ問題について話している人はいませんでした。Android Intent.ACTION_SEND対処の処理
これは私が私の意図を作成しています方法です:
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_TEXT, shareContent);
shareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);
shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
shareIntent.setType("image/*");
startActivity(Intent.createChooser(shareIntent, "Share Image"));
そして、これが正常に動作し、問題は、私は私のアプリに戻るしようとした場合、それが戻って応答していないことです。それをどうすれば解決できますか?
私が使用してみました:
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
}
しかし、これは私の問題を解決していません。
これを解決する方法はありますか?
これは私のlogcatです:
Caught a RuntimeException from the binder stub implementation.
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService(java.lang.String)' on a null object reference
at com.mediatek.anrappmanager.ANRManagerNative$1.b(SourceFile:77)
at com.mediatek.anrappmanager.ANRManagerNative$1.c(SourceFile:75)
at com.mediatek.anrappmanager.ANRManagerNative$a.get(SourceFile:97)
at com.mediatek.anrappmanager.ANRManagerNative.getDefault(SourceFile:35)
at com.mediatek.anrappmanager.ANRAppManager.dumpMessageHistory(SourceFile:59)
at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1244)
at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:682)
at android.os.Binder.execTransact(Binder.java:451)
「それは応答していません」とは正確にはどういう意味ですか? – mjn
また、「どちらも動作していません」という意味を説明してください。 – CommonsWare
@mjn - 画面がすべて黒で、しばらくして(2〜4分のような)私のアプリケーションが応答を停止し、私がそれを閉じたいというメッセージが表示されます。私はスクリーンショットを投稿するが、それはポルトガル語である –