Android Phone examples...

Just starting out? Need help? Post your questions and find answers here.
blueb
Posts: 4
Joined: Tue Feb 25, 2014 1:08 pm

Android Phone examples...

Post 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 ;)
plouf
Posts: 196
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Android Phone examples...

Post 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!
Christos
blueb
Posts: 4
Joined: Tue Feb 25, 2014 1:08 pm

Re: Android Phone examples...

Post 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.
blueb
Posts: 4
Joined: Tue Feb 25, 2014 1:08 pm

Re: Android Phone examples...

Post 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. :lol:
User avatar
Paul
Posts: 197
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: Android Phone examples...

Post 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.
User avatar
Peter
Posts: 1093
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Android Phone examples...

Post 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.
Dirk Geppert
Posts: 284
Joined: Fri Sep 22, 2017 7:02 am

Re: Android Phone examples...

Post 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
Dirk Geppert
Posts: 284
Joined: Fri Sep 22, 2017 7:02 am

Re: Android Phone examples...

Post 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?
plouf
Posts: 196
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Android Phone examples...

Post 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
Christos
Dirk Geppert
Posts: 284
Joined: Fri Sep 22, 2017 7:02 am

Re: Android Phone examples...

Post 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?
Post Reply