开发者

ACRA always disabled?

开发者 https://www.devze.com 2023-04-07 17:16 出处:网络
Here is the code I use to have ACRA but its not working,. in the LogCat I keep getting \"ACRA is disabled\":

Here is the code I use to have ACRA but its not working,. in the LogCat I keep getting "ACRA is disabled":

Checkbox xml: 开发者_StackOverflow

 <CheckBoxPreference android:key="acra.enable"
    android:title="@string/pref_disable_acra"
    android:summaryOn="@string/pref_acra_enabled"
    android:summaryOff="@string/pref_acra_disabled"
    android:defaultValue="true"/>

Preference class:

public class Preferences extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.layout.preferences);

     }
}

Here is a picture while enabling/disabling the checkbox:

ACRA always disabled?


Check You have added your Application in Manifest.xml file...

Only if you add it, it will be enabled....

Shanmugam

0

精彩评论

暂无评论...
验证码 换一张
取 消