android-10.0

Connect to Wifi in Android Q programmatically

谁都会走 提交于 2020-12-05 07:01:05
问题 I had this function to connect in Wifi network, below Android 10 it works fine, but when I tried on Android 10, I had a successful connection but WITHOUT internet , I knew it's a bug in Android 10 but I found this application which can connect to wifi from Android 10 with no problem. I'm blocked for days. My function : private void connectToWifi(String ssid, String password) { WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); if (Build.VERSION.SDK_INT < Build.VERSION

No such file or directory in Android 10 (api 29)

[亡魂溺海] 提交于 2020-11-28 08:25:56
问题 I am working on a photo editor app in which after editing my picture I save it into my local storage. It is working fine till android 9 but not on android 10. It shows exception of "No such file or directory found" in Android 10. After some research I found that getExternalFilesDir() is deprecated in android Q+. But I cannot find any proper way to do it in android 10. So please if anyone can provide a tutorial it would be really helpful. I've added and granted uses-permission android:name=

No such file or directory in Android 10 (api 29)

坚强是说给别人听的谎言 提交于 2020-11-28 08:23:51
问题 I am working on a photo editor app in which after editing my picture I save it into my local storage. It is working fine till android 9 but not on android 10. It shows exception of "No such file or directory found" in Android 10. After some research I found that getExternalFilesDir() is deprecated in android Q+. But I cannot find any proper way to do it in android 10. So please if anyone can provide a tutorial it would be really helpful. I've added and granted uses-permission android:name=

Robolectric and Android SDK 29

只愿长相守 提交于 2020-11-26 04:58:21
问题 When will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion and compileSdkVersion to 29? When I run my unit tests I get this huge stacktrace: java.lang.IllegalArgumentException: API level 29 is not available at org.robolectric.plugins.UnknownSdk.getJarPath(UnknownSdk.java:25) at org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader.<init>(AndroidSandbox.java:102) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Robolectric and Android SDK 29

纵饮孤独 提交于 2020-11-26 04:57:50
问题 When will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion and compileSdkVersion to 29? When I run my unit tests I get this huge stacktrace: java.lang.IllegalArgumentException: API level 29 is not available at org.robolectric.plugins.UnknownSdk.getJarPath(UnknownSdk.java:25) at org.robolectric.internal.AndroidSandbox$SdkSandboxClassLoader.<init>(AndroidSandbox.java:102) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)