@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_device_talk_volume); Intent in = getIntent(); if (in != null) { volumes = (ArrayList<DeviceVolumState>) in.getSerializableExtra(KeyVolumState); UniqueId = in.getStringExtra(KeyDeviceUniq); } mSwitchs = new HashMap<Integer, DeviceVolumState>(); if (volumes != null) { for (DeviceVolumState state : volumes) { mSwitchs.put(Integer.valueOf(state.type), state); } } mCurUser = showmoSystem.getCurUser(); mDeviceList = mCurUser.getDevices(); for (int i = 0; i < mDeviceList.size(); i++) { if (UniqueId.equals(mDeviceList.get(i).getUniqueId())) { device = mDeviceList.get(i); break; } } initView(); initNetwork(); }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.activity_about); new Thread() { public void run() { initImagePath(); } }.start(); findView(); }