- 博客(8)
- 收藏
- 关注
原创 android studio flamingo 2022.2.1 雷电模拟器Debug调试遇到Waiting until last debugger command completes的问题
1.Settings ->Build,Execution,Deployment -> Debugger -> Data Views -> Java -> Enable alternative view for Collections classes (取消勾选)1.Settings ->Build,Execution,Deployment -> Debugger -> Data Views -> Java -> Enable ToString object view (取消勾选)
2023-06-13 11:28:27
1064
2
原创 Android申请延迟音频焦点
private void init(){ mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); }private void requestAudioFocus(){if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { //申请延迟焦点 AudioFocusRequest.Build
2020-12-02 14:44:33
861
原创 记录AndroidStuido中XML自动提示不起作用的解决方法
关闭AndroidStudio->删除.AndroidStudiox.x对应目录下面的cachers文件夹->重启AndroidStudio
2020-10-29 10:30:13
223
原创 Android单独启动一个服务
1.在AndroidManifest中如下配置,theme设置为"@android:style/Theme.NoDisplay" <activity android:name=".MainActivity" android:theme="@android:style/Theme.NoDisplay"> <intent-filter> <action android:nam
2020-09-16 15:25:34
813
原创 Android用RxJava2实现倒计时(播放,暂停,停止)
1.引入Rxjava implementation 'io.reactivex.rxjava2:rxjava:2.0.1' implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'public class SimpleTimer { private TextView mTimeTv; private long playRecordTime; private long answerTime = 10 * 60;
2020-09-16 15:24:10
2099
1
原创 butterknife遇到Error:android-apt plugin is incompatible with the Android Gradle plugin问题
使用butterknife的时候,在Android Studio 执行Sync Project的时候出现了这个错误Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead.解决方法1.在项目的...
2019-07-09 12:00:05
214
原创 GreenDao使用记录
1.模糊查询 Dao.like("%"+value+"%") 前后需要加上%否则无效2.一对一 @ToOne(joinProperty = “xx”), xx指的是关联表的主键
2019-04-24 14:43:13
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人