Page 1 of 2
Android Phone examples...
Posted: Sun Apr 12, 2020 11:28 am
by blueb
Android apps on this forum seem to be difficult to find, at least my searches didn't bring up anything worthwhile.
Can someone point me to a few 'start to finish' examples showing how to get this 'APK' on my phone, etc.?
I want to track some numbers on my Android phone using a small database, I thought I'd look into SpiderBasic's ability to create Android apps.
Thanks in advance

Re: Android Phone examples...
Posted: Fri Apr 17, 2020 6:31 pm
by plouf
what exactly do you NOT understand ?
spiderbasic creates webapps, and then it can compiles these webapps to android/ios apps
as long as you have create an WebApp you can turn it to android app
create the following example
https://pasteboard.co/J4gj1CM.png
then copy created test.apk file to your phone (via usb cable for example) click it via fileexplorer App will install, and when you can start it!
Re: Android Phone examples...
Posted: Sat Apr 18, 2020 10:43 am
by blueb
Thanks plouf.
While I'm a PureBasic user, this is my first time delving into Web applications and Android usage.
I'm sure I'll come back with more questions.
Re: Android Phone examples...
Posted: Sat Apr 18, 2020 12:18 pm
by blueb
After reading this on the Oracle website:
The latest version of Java is always the recommended version as it contains feature updates, vulnerability fixes and performance improvements to previous versions. You can confirm that you have the latest version with the Java Verification page or manually checking the Java version.
Should I uninstall older versions of Java?
We highly recommend that you uninstall all older versions of Java from your system.
Keeping old versions of Java on your system presents a serious security risk.
Uninstalling older versions of Java from your system ensures that Java applications will run with the latest security and performance improvements on your system.
I downloaded the latest version: Java SE 14.0.1 is the latest release for the Java SE Platform
But unfortunately, building the APK file stopped at 60%
I finally found Java JDK 1.8 for Windows 10..
and it installed itself into C:\Program Files (x86)\Java\jdk1.8.0_101
I eventually compiled the Test.apk example provided by plouf
So I guess that SpiderBasic can only use the 32-bit version of Java.
I think the Help file doesn't explain this very well.
Now lets see if I can get this monster file unto my Android phone.
file size = 2.31 MB (2,427,120 bytes)
I'll be back.

Re: Android Phone examples...
Posted: Sat Apr 18, 2020 2:42 pm
by Paul
blueb wrote:After reading this on the Oracle website:
So I guess that SpiderBasic can only use the 32-bit version of Java.
I think the Help file doesn't explain this very well.
I use Java 64bit JDK 1.8.0_211 with SpiderBasic and it compiles fine to Android.
Re: Android Phone examples...
Posted: Sat Apr 18, 2020 2:58 pm
by Peter
Paul wrote:I use Java 64bit JDK 1.8.0_211 with SpiderBasic and it compiles fine to Android.
Here: 1.8.0_221 64bit
Also no problems.
Re: Android Phone examples...
Posted: Mon Apr 20, 2020 11:03 am
by Dirk Geppert
Where I can download that old Java 64bit JDK 1.8.0_211?
I've tried it with Window 10, SpiderBasic 2.31B1 and Java JDK 64bit 14.0.1 and JRE 1.8.0_241.
Have the same problem. The app creation stops at 60%.
Greetz Dirk
Re: Android Phone examples...
Posted: Mon Apr 20, 2020 11:14 am
by Dirk Geppert
Is there everything included in Spiderbasic, that is needed for creating Android apps ?
Does only the Java JDK need to be installed? Or also NodeJS or Cordova?
Are certain environment variables / paths required?
Re: Android Phone examples...
Posted: Mon Apr 20, 2020 12:43 pm
by plouf
only JDK
but if you want to publish in GoogleStore you have to sign app, to sign it you need tools from AndroidSDK
but for unsigned apps (outisde of GoogleStore) its not needed
Re: Android Phone examples...
Posted: Mon Apr 20, 2020 2:25 pm
by Dirk Geppert
plouf wrote:only JDK
These are the current versions:
- JDK 64bit 14.0.1
- JRE 1.8.0_251
So, if you tell me, you have 1.8.0_221 installed, you dont mean the JDK, but JRE?