APK question

148 views
Skip to first unread message

Leman Kendrick

unread,
Apr 4, 2025, 11:13:43 AMApr 4
to DroidScript
I am developing an app for personal use and ran into a situation that I have no clue on how to fix. I added an option in the app for the user to change colors and border widths for the controls. The new values are saved to a file and then loaded when the app is executed. Everything woks as expected when I execute in the Droidscript environment but only the border widths work in the APK. Any insight to this problem and any solution would be appreciated. Thanks for any assistance!!

Alan Hendry

unread,
Apr 4, 2025, 12:18:14 PMApr 4
to DroidScript
HI,
I'd add alerts of the the colour retrieved surrounded by "*"
to be completely sure what has been retrieved.
If you can't get that to work, then see SaveText and LoadText.
Regards, ah

Dave

unread,
Apr 6, 2025, 4:24:03 AMApr 6
to DroidScript
You are probably trying to save into the APK, which will not work.  What path are you saving to?

You could use "/Storage/config.json" for example, but "config.json" will not work in an APK because files in the project folder are stored in a read-only APK when installed to the device.  The. "/Storage/.." path format will access the storage area of your app (on both scoped and non-scoped) devices.

FrickelPit

unread,
Apr 6, 2025, 4:56:04 AMApr 6
to DroidScript
Hi Dave, I just saw that you replied to this post regarding APK Builder, and I'd like to take this opportunity to point out again that the current APK builder still doesn't recognize IAP purchases. I would be very grateful if you could fix this, because due to this issue ("In App Purchasing fails with DS 2.74"), I haven't been able to publish an update to my app in the App Store for many months now.
Regards Peter

Leman Kendrick

unread,
Apr 14, 2025, 3:45:01 PMApr 14
to DroidScript
Thanks for the suggestions. I discovered that the Hybrid UI Colorpicker was returning colors in RGB and that is what I was saving. !!I converted them to Hex and was able to get things working now. Thanks for the responses!! I also ran into another issue while working with the colors. I tried the UIExtras Colorpicker and it works fine in the Droidscript environment. If I create an APK, I get an error message that says that UIExtras.js is not found. When I click on Plugins under resources, it indicates that the UIExtras plugin is installed. If I use the FileManager, it does not show the UIExtras plugin as being installed. Does anyone have an idea on how to fix this?

Thanks 

Alan Hendry

unread,
Apr 15, 2025, 5:46:17 PMApr 15
to DroidScript
HI,
The only thing that springs to mind is to make sure you tick
include system assets in the build screen
Regards, ah
Reply all
Reply to author
Forward
0 new messages