- 博客(2)
- 收藏
- 关注
原创 Android关于设备唯一标识符的获取
1、IMEI获取IMEI是通过TelephonyManager对象,TelephonyManager对象的获取方式是通过context.getSystemService(),传入不同的值获取到的Manager对象不同。TelephonyManager tm = (TelephonyManager) context.getSystemService(Service.TELEPHONY_SERVICE);主要分以下几种情况:Android 6.0以下,无需权限获取方式:tm.getDeviceI
2021-01-13 14:48:29 727
原创 Runnable实现多线程和Callable的区别
Runnable实现多线程和Callable的区别直接上代码1.Runnable实现多线程private class ShellRunnable implements Runnable { private String ip; private Integer port; public ShellRunnable(String ip, Integer port) { ...
2019-12-19 10:36:07 258
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人