Java Code Examples for com.gizwits.opensource.appkit.ConfigModule.GosAirlinkChooseDeviceWorkWiFiActivity
The following examples show how to use
com.gizwits.opensource.appkit.ConfigModule.GosAirlinkChooseDeviceWorkWiFiActivity. These examples are extracted from open source projects.
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 Project: GOpenSource_AppKit_Android_AS Source File: GosDeviceListActivity.java License: 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 Project: Gizwits-SmartBuld_Android Source File: GosDeviceListActivity.java License: 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 Project: gokit-android Source File: GosDeviceListActivity.java License: 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 Project: GOpenSource_AppKit_Android_AS Source File: GosMainActivity.java License: 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); }