return new AlertDialog.Builder(LogSetting.this)
.setTitle(R.string.log_switch_title)
.setSingleChoiceItems(R.array.set_log_switch, sLogOnOffValue, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) {
dismissDialog(DIALOG_LOG_SWITCH);
if (which == LOG_OPEN) {
isRetLogSwitchValue = ProjectMenu.logOnOff(true);
// SystemProperties.set(LOGCAT_KEY_START, LOGCAT_VALUE);
SystemProperties.set(LOGCAT_KEY, LOGCAT_VALUE_START);
new AlertDialog.Builder(LogSetting.this)
.setMessage(isRetLogSwitchValue ? R.string.log_open_success
: R.string.log_open_fail)
.setPositiveButton(R.string.yes, null)
.show();
if (isRetLogSwitchValue) {
sLogOnOffValue = LOG_OPEN;
} else {
sLogOnOffValue = LOG_CLOSE;
}
Log.d(TAG,String.valueOf(sLogOnOffValue));
我想打开失败的时候,让item的两个焦点都为不选中的状态,应该怎么设置啊。目前是,虽然必有一个为选中的状态
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货