
android
开发android遇见的一些问题集合
划水小将军
心不妥协,行不受阻
邮箱:583285444@qq.com
展开
-
手机 rmount(adb)
手机 remount有OEM锁的,依次执行下面代码go to setting -> system -> Developer options -> OEM unlockingadb reboot bootloaderfastboot flashing unlockpress volume up keyfastboot rebootadb rootadb disable-verityadb rebootadb rootadb remount没有OEM锁锁的执行下面代原创 2021-05-12 08:47:26 · 190 阅读 · 0 评论 -
bash内置文档(ubuntu20.10)
用的是ubuntu20.10BASH-BUILTINS(7) Miscellaneous Information Manual BASH-BUILTINS(7)NAME bash-builtins - bash built-in commands, see bash(1)SYNOPSIS bash defines the following built-in commands: :, ., [, alias, bg, bind, b原创 2021-05-08 09:45:44 · 710 阅读 · 0 评论 -
MTK刷机(ubuntu下)
准备工作在linux下解压 SP_Flash_Tool_exe_Linux_v5.1832.00.100.zip(刷机工具)在linux下解压V755AN_11.0_GN_NG_17_DEBUG_FLASH.zip(刷机包)操作刷机工具根目录下运行脚本 flash_tools,出现图形化刷机界面FLASH中选择DA_SWSEC_xxx_.bin文件(刷机包下)选择XXXX_Android_scatter.txt文件(刷机包下)选择下载模式 Download Only – 仅下载原创 2021-05-08 09:40:46 · 2066 阅读 · 2 评论 -
adroid 通知demo
通知的函数 @SuppressLint("WrongConstant") void getNotification(){ NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); NotificationCompat.Builder builder = null; String channelId = "com.message.notif原创 2021-04-19 17:18:50 · 655 阅读 · 0 评论 -
服务绑定(ServiceBinder)播放音乐
服务绑定(ServiceBinder)播放音乐思路:在service中创建ServiceBinder,绑定的service的时候得到这个binder;活动中可以直接调用这个binder操作service。code 1. 服务注册 <service android:name=".service.PlayService"/>//注册服务3. PlayServicepublic class PlayService extends Service { private原创 2021-04-16 11:43:16 · 533 阅读 · 0 评论 -
(服务里)广播播放音乐
思路1. 在Service中使用广播接受者2. activity中,点击事件发送广播3. 动态注册广播(不推荐使用静态广播) code1.AndroidManifest.xml <service android:name=".service.PlayService"/>//注册服务 2.PalyServicepublic class PlayService extends Service { private MediaPlayer mediaPla原创 2021-04-16 11:09:44 · 169 阅读 · 0 评论 -
Fragment与viewpager的简单Demo
演示项目结构layoutactivity_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent" android:layout_height="match_parent" android:orientati原创 2021-04-15 10:45:27 · 168 阅读 · 0 评论