开发者

ACRA always 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜