安装 APK
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File("/sdcard/SafeMgr_Android_V1.5.32_Update.apk")), "application/vnd.android.package-archive");
startActivity(intent);
清空手机 Cookie
01.CookieSyncManager.createInstance(getApplicationContext());
02.CookieManager.getInstance().removeAllCookie();
用注释来控制隐藏字段 {@hide}
/**
* Activity Action: Start this activity to request system shutdown.
* The optional boolean extra field {@link #EXTRA_KEY_CONFIRM} can be set to true
* to request confirmation from the user before shutting down.
*
* This is a protected intent that can only be sent
* by the system.
*
* {@hide}
*/
public static final String ACTION_REQUEST_SHUTDOWN = "android.intent.action.ACTION_REQUEST_SHUTDOWN";
Java 类型签名
Z | boolean |
B | byte |
C | char |
S | short |
I | int |
J | long |
F | float |
D | double |
LXXX; | XXX 类 |
[ | 数组 |