test2
来源:互联网 发布:ie 淘宝登录 一直转圈 编辑:程序博客网 时间:2024/06/04 18:04
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import com.wesoft.phinxaircon.R;
import com.wesoft.phinxaircon.adapter.SettingAdapter;
import com.wesoft.phinxaircon.util.SharedPreference;
import java.util.ArrayList;
import java.util.List;
public class SettingActivity extends BaseActivity implements
OnItemClickListener {
private static final String TAG = "SettingActivity";
private ListView settingListView;
@Override
protected void loadViewContent() {
setContentView(R.layout.setting);
findViewById();
setListener();
initView();
}
@Override
protected void findViewById() {
Log.v(TAG, "SettingActivity findViewById()");
// TODO Auto-generated method stub
settingListView = (ListView) this.findViewById(R.id.lv_setting);
Log.v(TAG, "settingListView ==" + settingListView);
}
@Override
protected void initView() {
Log.v(TAG, "SettingActivity initView()");
setTitle(R.string.setting);
List<String> settingList = new ArrayList<String>();
settingList.add("温度单位");
settingList.add("定时设置");
settingList.add("网络连接");
settingList.add("屏幕保护");
settingList.add("设备注册");
settingList.add("远程访问授权");
settingList.add("帮助&关于");
SettingAdapter adapter = new SettingAdapter(SettingActivity.this,
settingListView, settingList);
settingListView.setAdapter(adapter);
}
@Override
protected void setListener() {
settingListView.setOnItemClickListener(this);
}
@Override
protected void processLogic() {
// TODO Auto-generated method stub
}
/**
* 设置栏点击
*/
@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
switch (position) {
//
// case 1:// 定时设置
// Intent timeSettingIntent = new Intent(this, TimingSetActivity.class);
// startActivity(timeSettingIntent);
// break;
// case 2://名称设定
// Intent nameSetIntent = new Intent(this, NameSetActivity.class);
// startActivity(nameSetIntent);
// break;
case 1:// 定时设置
Intent timeSettingIntent = new Intent(this, TimingSetActivity.class);
startActivity(timeSettingIntent);
break;
case 2:// 网络连接
Intent netConnectionIntent = new Intent(this,
NetConnectionActivity.class);
startActivity(netConnectionIntent);
break;
case 3:// 屏幕保护
Intent screenLockIntent = new Intent(this,
ScreenProtectSettingActivity.class);
startActivity(screenLockIntent);
break;
case 4:// 设备注册
Intent equipmentRegisterIntent = new Intent(this,
EquipmentRegisterActivity.class);
startActivity(equipmentRegisterIntent);
break;
case 5:// 远程授权
boolean auth_confirm_ok = SharedPreference.getBoolean(this,
"config", "auth_confirm_ok");
if (auth_confirm_ok) {
Intent authTimeCountdown = new Intent(this,
AuthTimeCountdownActivity.class);
startActivity(authTimeCountdown);
} else {
Intent authCenterIntent = new Intent(this,
AuthCenterActivity.class);
startActivity(authCenterIntent);
}
break;
// 帮助&关于
case 6:
Intent helpAndAboutIntent = new Intent(this,
HelpAndAboutActivity.class);
startActivity(helpAndAboutIntent);
break;
//
}
}
}
- Test2
- test2
- test2
- Test2
- test2
- Test2
- test2
- test2
- test2
- test2
- TEST2
- TEST2
- test2
- test2
- test2
- test2
- test2
- test2
- java socket 多线程网络传输多个文件
- postgresql的安装
- top
- test1
- 使用SYS用户远程登陆报权限不足的解决:ORA-01031: insufficient privileges
- test2
- 硬盘内部硬件结构和工作原理详解
- malloc/free与new/delete的区别
- 我的博客索引【持续更新】
- 【四圣龙神录的编程教室】第2章、首先运行下看看吧
- 20条编程经验
- 阿录帮帮忙—第一章—struts2介绍以及基本环境配置
- iframe中src参数过长问题解决
- java构造方法