- 博客(7)
- 收藏
- 关注
原创 安卓开发——android8.0应用崩溃,报错: Only fullscreen opaque activities can request orientation
安卓开发——android8.0应用崩溃,报错: Only fullscreen opaque activities can request orientation这个问题出现在android8.0以上。原因是我们给Activity同时设置了 android:screenOrientation=""和 true。没办法,解决适配呗(-_-)。 解决办法:删除AndroidManifest中...
2018-10-30 17:11:21 613
原创 Android应用使用SurfaceView+MediaPlayer进行视频播放时出现IllegalArgumentException
Android应用使用SurfaceView+MediaPlayer进行视频播放时出现IllegalArgumentException: The surface has been releasedCaused by java.lang.IllegalArgumentException: The surface has been releasedat android.media.MediaPl...
2018-10-30 16:52:37 1037
原创 应用内更新安装
各个版本应用安装方法1、各个版本判断 // filepath 文件路径 private static void installAPK(Context context, String filePath) { if (Build.VERSION.SDK_INT < 23) { Intent intents = new Intent()...
2018-10-30 16:47:28 510
原创 APP打包问题
APP打包出现问题Caused by: java.io.IOException: Please correct the above warnings first.解决方式:1、在混淆文件添加 -ignorewarnings #屏蔽警告2、也可能是您的build文件中release {minifyEnabled trueproguardFiles getDefaultPr...
2018-10-30 16:34:20 291
原创 MediaRecorder使用
MediaRecorder用于录像录音。1、使用到的权限 &amp;amp;lt;user-permission android:name=&amp;quot;android.permission.RECORD_AUdio&amp;quot;/&amp;amp;gt; &amp;amp;lt;user-permission android:name=&amp;quot;android.permission.
2018-10-30 16:27:54 7128
原创 在Google Play发布应用显示设备数量为0,处理办法
在Google Play发布应用显示设备数量为0,处理办法当我们的应用发布在Google Play时,在 Google Play Console 可以看到此应用支持的设备数量,如果设备数量为0或者可支持设备数量非常低时,请参考一下解决方案(或许不是很完全,但是可以提高设备数量)在Google Play Console 上传应用时注意事项上传应用时Google会提示加入 Google Pl...
2018-10-30 16:25:52 2774
原创 Android 保活后台启动Service 8.0踩坑记录
Android 保活后台启动Service 8.0踩坑记录发现的问题解决方法发现的问题android使用保活后,启动后台服务抛出一下异常:Caused by java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.yangwenhao.demo/.keepalive.StepService...
2018-10-30 16:02:57 5651 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人