Backward compatability

128 views
Skip to first unread message

Syed Munawer Hassan

unread,
Mar 27, 2021, 6:02:58 AM3/27/21
to DroidScript
is there any option to force application to run with old version i.e. I want to save camera pic which is not allowed in android 10 can i use android 9 compatibility in android 10 ? 

Alan Hendry

unread,
Mar 27, 2021, 12:25:17 PM3/27/21
to DroidScript
 Hi,
Android 10 has scoped storage which restricts where an app can write to (and read).
On Android 10 (Go) I've found that I can write images (running as SPK and APK) to
GetPrivateFolder() and GetPrivateFolder("Pictures") and GetPrivateFolder("Pictures","External")
FileExists reports that they all save the image. 
But the first two are somewhere that File Manager doesn't show.
The latter can be seen in Internal Storage > Android > data > packagename > files > Pictures
(running from Droidscript the packagename is com.smartphoneremote.androidscript
if you build as an APK install and run then it is your packagename).
(ScanFile doesn't seem to add any of them to the Image Gallery, not even after a reboot of Android).
Regards, ah 

Dave

unread,
Mar 29, 2021, 8:44:27 AM3/29/21
to DroidScript
You can use a build.json file to target older versions of Android with your built APKs (search on this forum for build.json)

And you can use an older version of DS from here:-

Dave

unread,
Apr 5, 2021, 8:22:37 AM4/5/21
to DroidScript
If you want to use SMS functionality you will need to use the 'X' versions of DS, but you will not be able to publish on Google Play
Reply all
Reply to author
Forward
0 new messages