gcacace / android-signaturepad

A custom Android View for drawing smooth signatures
Apache License 2.0
2.76k stars 640 forks source link

Android 10 is not working signature bitmap #149

Open Lalitchaudhary2 opened 4 years ago

PieterPicup commented 4 years ago

@Lalitchaudhary2 you will need to provide some sort of explanation for your issue. I have an app in production running on my Android10 devices working perfectly. Except for when minimizing the app which the author @gcacace is aware of.

chazgps commented 3 years ago

Change build.gradle in Example project to targetSdkVersion = 28 (Android P).

Android 10 (29) doesn't permit to save pictures outside app's directory.

Jayrek commented 3 years ago

as the googleplay docs say: https://developer.android.com/distribute/play-policies#:~:text=Apps%20must%20target%20API%20level,11%20(API%20level%2030). ALL Apps must target API level 30.
My app targetSdkVersion is 28 but cant proceed to playtore because they needs targetSdkVersion 29. When I target 29, my app will crash in Android 10 when performing signature.

is there any workaround? Thanks

sproctor commented 3 years ago

Can you provide some kind of information on the crash? I'm using this in an app that targets sdk 30 and runs on Android 10 and 11 with no issues.

Jayrek commented 3 years ago

I just added this line to my AndroidManifest and it works android:requestLegacyExternalStorage="true"

xiazunyang commented 2 years ago

If you used Coil or Glide or other Image Loader, maybe enabled hardware acceleration, it can work after disabled it.