![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android小家
Jessica lian
这个作者很懒,什么都没留下…
展开
-
低功耗蓝牙--BluetoothGatt资源释放
一直比较懒,没有仔细整理过开发记录,今天有点小收获,分享一下1.BluetoothGatt怎么生成1*BluetoothGatt = mDevice.connectGatt(mContext, false,mGattCallback)源码 /** * Connect to GATT Server hosted by this device. Caller a...原创 2019-10-16 17:22:36 · 3704 阅读 · 2 评论 -
转 Service Intent must be explicit: Intent 解决
Service Intent must be explicit: Intent 解决 java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.google.android.gms.analytics.service.START (has extras) } 在Acti...转载 2019-02-20 13:37:21 · 294 阅读 · 0 评论 -
String 转化成int源碼
int i = Integer.parseInt("22");一:参数二表示,要得到的进制,默认10进制public static int parseInt(String s) throws NumberFormatException { return parseInt(s,10);}二:parseint的实现 public static int pars...原创 2019-03-29 14:02:28 · 369 阅读 · 0 评论 -
Android和H5混合开发(一)
1.html界面<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script typ...原创 2019-04-10 16:58:13 · 2314 阅读 · 0 评论 -
Android 混合H5开发两种模式
1.模式一:原生HyBrid1.JS<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> &l...原创 2019-04-15 15:25:47 · 724 阅读 · 0 评论