摘要: 1、整数或者浮点数 2、字符串(双引号) 3、逻辑值(true或者false) 4、null 5、数组 阅读全文
posted @ 2017-12-31 14:09 我在途中 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1、json的方式 base64转换成字符串 2、raw原生的方式 阅读全文
posted @ 2017-12-31 12:56 我在途中 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: roadcastReceiver 生命周期 一个BroadcastReceiver 对象只有在被调用onReceive(Context, Intent)的才有效的,当从该函数返回后,该对象就无效的了,结束生命周期。 因此从这个特征可以看出,在所调用的onReceive(Context, Intent)函数里,不能有过于耗时的操作,不能使用线程来执行。对于耗时的操作,请start service... 阅读全文
posted @ 2017-12-18 18:21 我在途中 阅读(1143) 评论(0) 推荐(0) 编辑
摘要: 参数说明 int requestCode 请求码,相当于startActivityForResult的请求码 Intent data 默认结果,相当于setResult的data int flags 标志位,不太明白,老朽传了个0 这个Activity的方法作用是,得到一个PendingIntent 阅读全文
posted @ 2017-12-18 18:16 我在途中 阅读(897) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xiaoyaoyou1212/article/details/52346904 ANDROID的 BLUETOOTH 实现机制与架构 http://blog.csdn.net/pashanhu6402/article/details/53404685 阅读全文
posted @ 2017-12-17 16:35 我在途中 阅读(615) 评论(0) 推荐(0) 编辑
摘要: BluetoothKit是一款功能强大的Android蓝牙通信框架,支持低功耗蓝牙设备的连接通信、蓝牙广播扫描及Beacon解析。 关于该项目的详细文档请关注:https://github.com/dingjikerbo/BluetoothKit 对于刚接触Android蓝牙开发的初学者来说,会经常 阅读全文
posted @ 2017-12-17 12:43 我在途中 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: 1、path环境变量 2、android studio关联ndk local.properties ndk.dir gradle.properties android.useDeprecatedNdk=true//兼容老版本 3、build.gradle 配置 defaultConfig{ ndk{ 阅读全文
posted @ 2017-11-14 12:03 我在途中 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 1、c++没有boolean和byte 2、c中的boolean,0表示false,非零表示true 3、没有string,就用数组来表示 char a[] 4、指针就是内存地址,内存地址就是指针 作弊工具可以直接修改内存里面的值 5.函数返回多个值,就是通过传地址参数,修改内存地址的值 6、数组的 阅读全文
posted @ 2017-11-13 17:01 我在途中 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.观察者(observer)--订阅者 update 2.被观察者(observable)--发布者 必要条件: 设置状态发生变化,然后根据变化进行通知notify 主函数: 测试结果: 阅读全文
posted @ 2017-11-12 13:52 我在途中 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、git config --global user.name git config --global user.mail 2、git init 初始化仓库 3、git add git checkout --file git reset HEAD file 4、git commit git rese 阅读全文
posted @ 2017-11-09 15:37 我在途中 阅读(123) 评论(0) 推荐(0) 编辑