摘要: 百分之50 SerialPortFinder 方法 有点意思 这个方法是不涉及底层的,没有native方法,也不需要c和h文件 就能识别串口 MainActivity.java package com.gatsby.serialport; import android.os.Bundle; impo 阅读全文
posted @ 2020-07-06 13:52 CrushGirl 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/94b8582d089a 一、ContentProviderContentProvider为不同的应用之间实现数据共享,提供统一的接口,也就是说ContentProvider可以实现进程间的数据共享,实现跨进程通信 二、ContentProvide 阅读全文
posted @ 2020-06-27 23:25 CrushGirl 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 一、SharedPreferences 1.1、SharedPreferences本身就是一个接口,不能直接创建实例,只能通过Context提供的getSharedPreferences(String name,int mode)方法获取SharedPreferences实例 Context.MOD 阅读全文
posted @ 2020-06-26 21:55 CrushGirl 阅读(282) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_38312843/article/details/104701361 https://blog.csdn.net/u014674293/article/details/93650709 一.分区 dmesg [ 1.389200] uboot: 0x 阅读全文
posted @ 2020-06-23 11:38 CrushGirl 阅读(2883) 评论(0) 推荐(0) 编辑
摘要: brave-sailor https://www.cnblogs.com/Free-Thinker/p/11937531.html _奇点 https://www.cnblogs.com/qi-dian/p/6132694.html 一、Android 应用常用存储路径 1.1、常用路径 /data 阅读全文
posted @ 2020-06-15 19:52 CrushGirl 阅读(4207) 评论(0) 推荐(0) 编辑
摘要: package com.gatsby.filepath; import android.os.Bundle; import android.os.Environment; import android.util.Log; import androidx.appcompat.app.AppCompat 阅读全文
posted @ 2020-06-15 16:59 CrushGirl 阅读(2369) 评论(0) 推荐(0) 编辑
摘要: 三、 四、 代码 4.1、activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android 阅读全文
posted @ 2020-05-31 23:44 CrushGirl 阅读(1545) 评论(0) 推荐(0) 编辑
摘要: 安卓设备跟电脑需处于同一局域网内,可以使用有线网的方式,或是让电脑跟安卓设备连接在同一wifi路由下,亦可通过电脑创建wifi热点让安卓设备连接都可以 一.网络adb 1.1.device\rockchip\common\init.rk30board.rc # for Internet adb on 阅读全文
posted @ 2020-05-30 18:45 CrushGirl 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 一、实现手机电话状态的监听,主要依靠两个类:TelephoneManger和PhoneStateListener 1.1、TelephonseManger提供了取得手机基本服务的信息的一种方式。因此应用程序可以使用TelephonyManager来探测手机基本服务的情况。应用程序可以注册listen 阅读全文
posted @ 2020-05-30 18:14 CrushGirl 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: 一、Toast简介 当视图显示给用户,在应用程序中显示为浮动。和Dialog不一样的是,它永远不会获得焦点,无法被点击。用户将可能是在中间键入别的东西。Toast类的思想就是尽可能不引人注意,同时还向用户显示信息,希望他们看到。而且Toast显示的时间有限,Toast会根据用户设置的显示时间后自动消 阅读全文
posted @ 2020-05-23 13:59 CrushGirl 阅读(2972) 评论(0) 推荐(0) 编辑