80,350
社区成员
发帖
与我相关
我的任务
分享
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));