Android 10 11 文件权限问题
Environment.getExternalStorageDirectory() File.listFiles()返回null
android:requestLegacyExternalStorage="true" true,采用的是非分区存储方法。flase ,采用的是分区存储方法。
新版的权限MANAGE_EXTERNAL_STORAGE
Environment.getExternalStorageDirectory() File.listFiles()返回null
android:requestLegacyExternalStorage="true" true,采用的是非分区存储方法。flase ,采用的是分区存储方法。
新版的权限MANAGE_EXTERNAL_STORAGE
从手机相册里面显示图片,但是发现有的图片能显示有的图片不能显示,路径都是对的,程序也没提示任何错误。后来通过看日志发现error message: Bitmap too large to be uploaded into a texture (4208x3120, max=4096x409…
【˂span style="font…
选择手机里安装的外部地图应用,在外部地图应用里显示商户的位置。˂br style="word-wrap: break-word; color: rgb(68, 68, 68); font-family: "Microsoft Yahei&q…
今天用Tablayout——ViewPage出现getCustomView为空的问题通过源码发现,ViewPage的adapter更新会吧TabLayout 的customViewc置空。这个时候自动调用OnTabSelectedListener的onTabSelected方法去获取Cu…
NotificationChannel notificationChannel = new NotificationChannel (NOTIFICATION_C…
RecyclerView设置的OnItemClick点击最后一个无效,在点击最后一个无效后在部分手机上点击其他item会触发最后一个view的onclick事件,有的手机始终无反应。是因为popwindow里RecyclerView宽度设置为match_parent的原因改为wrap_content…