com.gizwits.opensource.appkit.ConfigModule.GosAirlinkChooseDeviceWorkWiFiActivity Java Examples
The following examples show how to use
com.gizwits.opensource.appkit.ConfigModule.GosAirlinkChooseDeviceWorkWiFiActivity.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GosDeviceListActivity.java From GOpenSource_AppKit_Android_AS with MIT License | 6 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.imgNoDevice: case R.id.btnNoDevice: if (!checkNetwork(GosDeviceListActivity.this)) { Toast.makeText(GosDeviceListActivity.this, R.string.network_error, 2000).show(); return; } intent = new Intent(GosDeviceListActivity.this, GosAirlinkChooseDeviceWorkWiFiActivity.class); startActivity(intent); break; default: break; } }
Example #2
Source File: GosDeviceListActivity.java From Gizwits-SmartBuld_Android with MIT License | 6 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.imgNoDevice: case R.id.btnNoDevice: if (!checkNetwork(GosDeviceListActivity.this)) { Toast.makeText(GosDeviceListActivity.this, R.string.network_error, 2000).show(); return; } intent = new Intent(GosDeviceListActivity.this, GosAirlinkChooseDeviceWorkWiFiActivity.class); startActivity(intent); break; default: break; } }
Example #3
Source File: GosDeviceListActivity.java From gokit-android with MIT License | 6 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.imgNoDevice: case R.id.btnNoDevice: if (!checkNetwork(GosDeviceListActivity.this)) { Toast.makeText(GosDeviceListActivity.this, R.string.network_error, 2000).show(); return; } intent = new Intent(GosDeviceListActivity.this, GosAirlinkChooseDeviceWorkWiFiActivity.class); startActivity(intent); break; default: break; } }
Example #4
Source File: GosMainActivity.java From GOpenSource_AppKit_Android_AS with MIT License | 5 votes |
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: // activity.logoutToClean(); // finish(); break; case R.id.action_QR_code: AndPermission.with(this) .requestCode(REQUEST_ZXINGCODE_SETTING) .permission(Manifest.permission.CAMERA).rationale(new RationaleListener() { @Override public void showRequestPermissionRationale(int arg0, Rationale arg1) { AndPermission.rationaleDialog(GosMainActivity.this, arg1).show(); } }) .send(); break; case R.id.action_addDevice: if (!checkNetwork(GosMainActivity.this)) { Toast.makeText(GosMainActivity.this, R.string.network_error, 2000).show(); } else { intent = new Intent(GosMainActivity.this, GosAirlinkChooseDeviceWorkWiFiActivity.class); startActivity(intent); } break; } return super.onOptionsItemSelected(item); }