アライさん ノート
アライさん なのだ
Toggle navigation
アライさん ノート
Homepage
Tags
编译系统
安装完android开发环境后 需要安装的包 build-essential git-core gnupg flex bison gperf zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev .........
Posted by アライさん on 2019年10月22日
调节系统声音和亮度
123456789101112131415161718AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);seekBar.s.........
Posted by アライさん on 2019年10月22日
ADB相关命令
1./adb devices 1./adb shell pm list package 1./adb shell 1am start -a android.intent.action.Main -n com.zwtx.trafficstatslog/com.zwtx.trafficstatslog.EmptyActivity 1ps com.zwtx.trafficstatslog 1.........
Posted by アライさん on 2019年10月22日
AIDL跨App(跨进程)通信
实测kotlin实现时,明明类存在,但会出现unresolved reference模式:一个App开启Service服务,一个App绑定服务进行交互。 要点:Service App和Client App要使用同一份aidl文件,包名也必须相同。如果不是用基础数据而是要使用序列化后的Data,Data的包名也必须相同。/———————————————————————————/—————.........
Posted by アライさん on 2019年10月22日
Android动画
插值器 AccelerateDecelerateInterolator:先加速后减速,开始结束时慢,中间快。 AccelerateInterpolator:加速,开始慢中间加速。 DecelerateInterpolator:减速,开始快之后减速。 AnticipateInterpolator:反向,先向相反方向改变一段,然后正向加速。 AnticipateO.........
Posted by アライさん on 2019年10月22日
Android根据包名启动其他app并传递参数
1234val aPackage = packageManager.getLaunchIntentForPackage("com.example.fress")aPackage?.putExtra("title","标题")aPackage?.putExtra("name","名字&qu.........
Posted by アライさん on 2019年10月22日
Architecture Components
https://developer.android.com/jetpack/docs/guide ViewModel:为指定的UI组件提供数据,负责与数据处理业务部分的交互。ViewModel可以直接调用网络获取数据,但一般分离出一个Repository模块。 LiveData:可观察的,数据持有者,遵守生命周期(不需要在onStop或onDestory中解除,会自动处理)。.........
Posted by アライさん on 2019年10月22日
Bluetooth蓝牙
BluetoothDeviceBluetoothDevice.getBondState()获取绑定状态。BluetoothDevice.BOND_BONDING:正在绑定BluetoothDevice.BOND_BONDED:已经绑定BluetoothDevice.BOND_NONE:未绑定 所需权限:123<uses-permission android:name=&quo.........
Posted by アライさん on 2019年10月22日
ConstraintLayout布局盖在上方
android:elevation=”2dp” ...
Posted by アライさん on 2019年10月22日
ContentProvider
1234<provider android:name=".alarm.AlarmContentProvider" android:authorities="com.testapp.AlarmContentProvider" android:exported="true" /> ## Conten.........
Posted by アライさん on 2019年10月22日
← Newer Posts
Older Posts →
About me
アライさん なのだ
Tags
android系统相关
android
iOS开发
linux
macOS
flutter
其他技术
git
hexo
算法
错误记录
nodejs
react
vue
typescript
Recent posts
vue实战
typescript知识点
react_node.js开发实战
redux
react基础