![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 89
Sue_水墨格子
我是傲娇的程序媛~~~略迷糊,略小白
展开
-
Android实现蓝牙(BlueTooth)设备检测连接
项目要求实现蓝牙设备搜索连接,Android为蓝牙技术提供了4个工具类,分别是蓝牙适配器BluetoothAdapter、蓝牙设备BluetoothDevice、蓝牙服务端套接字BluetoothServerSocket和蓝牙客户端套接字BluetoothSocket。蓝牙适配器BluetoothAdapterBluetoothAdapter的作用其实跟其它的**Manger差不多,可以把它当作蓝牙管理器。下面是BluetoothAdapter的常用方法说明。getDefaultAdapter:原创 2021-07-28 17:24:25 · 3397 阅读 · 3 评论 -
Linux下adb devices找不到设备解决方法
ubuntu下USB连接Android手机后,使用adb devices 出现如下:List of devices attached???????????? no permissions或者List of devices attached解决方法:1.$lsusbBus 002 Device 003: ID 413c:2107 Dell Computer C原创 2017-01-04 10:52:47 · 11800 阅读 · 3 评论 -
android获取SIM卡信息和手机号码
直接附上代码,具体实现new一个PhoneInfoUtils对象,调用其方法即可。public class PhoneInfoUtils { private static String TAG = "PhoneInfoUtils"; private TelephonyManager telephonyManager; //移动运营商编号 priv原创 2017-01-04 11:49:52 · 23390 阅读 · 2 评论 -
Android版本和API Level对应关系
官网地址:https://developer.android.com/guide/topics/manifest/uses-sdk-element.html原创 2017-01-05 10:10:12 · 345 阅读 · 0 评论 -
android webview js 交互
在WebView中使用JavaScript进行交互,加载的网页可以是本地也可以是服务器上的。前提,将webSettings调用setJavaScriptEnabled(true),使得本地支持支持js:WebView webView = (WebView) findViewById(R.id.webview);WebSettings webSettings = webView.get原创 2017-01-06 16:42:37 · 761 阅读 · 0 评论