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
最近在写Java后台, 编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g. x.new…
xml: android:overScrollMode="never"java: view.setOverScrollMode(ScrollView.OVER_SCROLL_NEVER);…
今天用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…
Android Studio的安装和设定之后如果更换了电脑,想再次更新(检查更新)的时候也许会遇到这个问题:安装未成功完成。有关详细信息,请参阅IDE日志这是因为教室里的电脑,使用者的名称,和你家里或是别的地方的使用者名称不同所导致因为在更新的过程中,Android Studio会先将更新档放到Te…