Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトでBugSenseを有効にしますが、ユーザーがバグレポートを送信したくない場合に備えて、実行時にBugSenseを無効にする簡単な方法を探しています。
好みのようなものを望んでいるacra.disable
acra.disable
1行である限り、次のようなものを使用しています。
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); if (preferences.getBoolean(PREFERENCE_BUGS, true)) { BugSenseHandler.setup(this, myBugsenseKey); }
ただし、これを機能させるには、アプリケーションを再起動する必要があります。