android-10.0

Xamarin.Android crash only on Android 10

南笙酒味 提交于 2021-01-28 09:11:36
问题 I have a project that is working perfectly in any version below api 29. When i try to run in a Android 10 device the app crashes after show the splash screen, debugger show this error: Java.Lang.RuntimeException: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Binary XML file line #17 in com.panterafood.garcom:layout/abc_screen_simple: Error inflating class android.support.v7.widget.FitWindowsLinearLayout at Java.Interop.JniEnvironment+InstanceMethods

windowLightNavigationBar not working on Android 10 (Q)

走远了吗. 提交于 2021-01-28 04:19:44
问题 I'm trying to make Navigation Bar Light With dark Dots on it So I made style-v27.xml with windowLightNavigationBar = true : <item name="android:windowLightNavigationBar">true</item> <item name="android:navigationBarColor">@android:color/white</item> this feature is available in Api Level 27+ AND: it works fine on api 27 (android 8.1) - emulator it works fine on api 28 (android 9) - emulator it's NOT working on api 29 (android 10) - emulator On Android 10 dot remains White And Background is

Android Q Kotlin - API 29: check if image exists

让人想犯罪 __ 提交于 2021-01-28 01:53:14
问题 This is the code I'm using to save image in Android Q: private var fileName = "" private fun downloadImage(){ val folderName = "Funny" fileName = "bla_" + dlImageURL.split("/").toTypedArray().last() // find out here if this image already exists val requestOptions = RequestOptions() .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.NONE) val bitmap = Glide.with(this@DownloadImage) .asBitmap() .load(dlImageURL) .apply(requestOptions) .submit() .get() try { val values = ContentValues()

Write permissions not working - scoped storage Android SDK 30 (aka Android 11)

北战南征 提交于 2021-01-27 20:32:12
问题 Anyone else finding scoped-storage near-impossible to get working? lol. I've been trying to understand how to allow the user to give my app write permissions to a text file outside of the app's folder. (Let's say allow a user to edit the text of a file in their Documents folder). I have the MANAGE_EXTERNAL_STORAGE permission all set up and can confirm that the app has the permission. But still every time I try val fileDescriptor = context.contentResolver.openFileDescriptor(uri, "rwt")?

After migrating from SDK 28 to SDK 29 in Android my app crashed and facing : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), error in Android studio 3.4.1

给你一囗甜甜゛ 提交于 2021-01-27 17:53:09
问题 Iam facing the issue only in OnePlus, Samsung , Poco F1 with Android OS version 10. It's working in pixel devices with Android 10. Please find the error logs below Build fingerprint: 'Xiaomi/beryllium/beryllium:10/QKQ1.190828.002/V11.0.6.0.QEJMIXM:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: 2020-03-16 18:10:34+0530 pid: 2594, tid: 2737, name: JavaBridge >>> com.mymobile<<< uid: 10362 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7188e089db Cause: execute-only (no-read)

Toast not showing in Android Q

落爺英雄遲暮 提交于 2021-01-27 03:53:56
问题 Toast does not work in Android Q . Is there any change on Toast ? I couldn't find any release note for Toast . My code is simple. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) Toast.makeText(this, "onCreate", Toast.LENGTH_SHORT).show() } fun onButtonClick(view: View) { Toast.makeText(this, "onButtonClick", Toast.LENGTH_SHORT).show() } This works fine with Android Pie, but no luck with Android Q. What happened to

Toast not showing in Android Q

那年仲夏 提交于 2021-01-27 03:53:52
问题 Toast does not work in Android Q . Is there any change on Toast ? I couldn't find any release note for Toast . My code is simple. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) Toast.makeText(this, "onCreate", Toast.LENGTH_SHORT).show() } fun onButtonClick(view: View) { Toast.makeText(this, "onButtonClick", Toast.LENGTH_SHORT).show() } This works fine with Android Pie, but no luck with Android Q. What happened to

Toast not showing in Android Q

南笙酒味 提交于 2021-01-27 03:53:36
问题 Toast does not work in Android Q . Is there any change on Toast ? I couldn't find any release note for Toast . My code is simple. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) Toast.makeText(this, "onCreate", Toast.LENGTH_SHORT).show() } fun onButtonClick(view: View) { Toast.makeText(this, "onButtonClick", Toast.LENGTH_SHORT).show() } This works fine with Android Pie, but no luck with Android Q. What happened to

Android Q Wifi connection via WifiNetworkSpecifier lose connection immediately after connection established

时光总嘲笑我的痴心妄想 提交于 2021-01-18 04:22:50
问题 I'm currently trying to connect to a wifi network. I used the below code. WifiNetworkSpecifier specifier = new WifiNetworkSpecifier.Builder() .setSsid(ssid) .setBssid(MacAddress.fromString(bssid)) .setWpa2Passphrase(password) .build(); NetworkRequest request = new NetworkRequest.Builder() .addTransportType(NetworkCapabilities.TRANSPORT_WIFI) .setNetworkSpecifier(specifier) .build(); ConnectivityManager manager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context

How do i make shared libs extracted by Android for AAB?

二次信任 提交于 2021-01-07 06:34:55
问题 I set android:extractNativeLibs="true" and target to Android 29 to make my shared libs extracted to /data/app/%package%/... by Android. If works just fine with APK to workaround Android 10 permissions issue. Recently i had to switch to AAB due to increased to 150Mb download size as my APK size exceeds Google Play limit of 100Mb. When testing APK installation from AAB ["APK from app bundle" deploy option in Android Studio] i noticed /data/app/%package%/.. is empty (in contrast to pure single