问题标签 [android-api-30]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - How delete Folder on Android API 30 and API 29
I created an app that creates folders based on the user's name, and there is an option to delete those folders, and even delete pre-made folders without my app.
My app works well on Android 8, 8.1 and 9, but it is different in newer versions of Android and I can no longer delete folders.
I requested access to memory and read and write using this
In Java code:
And this my code for delete folders:
I create Folder like this:
I'm sure that creating folders works properly, but I also want my software to be able to delete folders on the device itself (folders that were previously created without using my app)
I do not know what to do in Android 10 and 11 and is there any way to delete folders in these?
android - 无法解析主机“myHostname”:没有与主机名关联的地址
我正在开发一个安卓应用程序。在这个应用程序中,我必须调用不同的 API。它工作正常。但有时我会遇到以下异常:
java.net.UnknownHostException:无法解析主机“myHostname”:没有与主机名关联的地址
无法理解为什么它有时会抛出异常。我也检查了服务器端。它有时会抛出异常,有时它工作正常。我调用 API 的代码:
Android 在这一行抛出异常:
android - 如何在 android 目标 sdk 30 中以编程方式忘记 wifi 网络
我想忘记设备中的 wifi 连接网络。我浏览了大部分代码,但它们无法正常工作。
这里永远不会调用成功。
这里 netid 显示 -1 值,它也不会忘记 wifi 网络。我已经读到它不应该工作,你必须使用必须提供权限 WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN。我还在清单中提到了这一点,但没有发生任何变化。我已经读到,你的应用程序现在可以更改 WifiConfiguration 对象的状态,前提是你创建了这些对象. 您不得修改或删除用户或其他应用创建的 WifiConfiguration 对象。由于我们可以通过进入手机设置忘记网络。所以应该有一些方法可以忘记WiFi网络
android - 我正在使用具有 targetSdkVersion 29 的应用程序,但当我更改为 30 时,应用程序的某些功能停止工作
但是在更改目标 SDK 版本后必须是 30 一个应用程序功能不起作用(有一个选项可以对任何图像生效,然后我们可以在应用程序库和我的手机库中看到该图像)但该功能停止工作。