ACRA 总是被禁用?
这是我用于 ACRA 的代码,但它不起作用。在 LogCat 中,我不断收到“ACRA 已禁用”:
Checkbox xml:
<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 the code I use to have ACRA but its not working,. in the LogCat I keep getting "ACRA is disabled":
Checkbox xml:
<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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您已在 Manifest.xml 文件中添加您的应用程序...
只有添加它,它才会启用...
Shanmugam
Check You have added your Application in Manifest.xml file...
Only if you add it, it will be enabled....
Shanmugam