The QB64 Edition
Is there a BASIC that compiles Android and Mobile apps? - Printable Version

+- The QB64 Edition (https://qb64.thejoyfulprogrammer.com)
+-- Forum: The Lounge (https://qb64.thejoyfulprogrammer.com/forumdisplay.php?fid=484)
+--- Forum: Projects in Other Programming Languages (https://qb64.thejoyfulprogrammer.com/forumdisplay.php?fid=439)
+---- Forum: Other (https://qb64.thejoyfulprogrammer.com/forumdisplay.php?fid=441)
+----- Forum: MISC (https://qb64.thejoyfulprogrammer.com/forumdisplay.php?fid=590)
+----- Thread: Is there a BASIC that compiles Android and Mobile apps? (/showthread.php?tid=976)

Pages: 1 2


Is there a BASIC that compiles Android and Mobile apps? - MansterSoft - 08-25-2017

In a perfect world QB64 would be able to compile games for Android, but sadly no.
Do any of you have any experience with a BASIC program that will compile games for at least Android?

I think Monkey X does, but $99 is a little steep.


RE: Is there a BASIC that compiles Android and Mobile apps? - johnno56 - 08-25-2017

I believe that Monkey X (not version 2) is free and open source. https://blitzresearch.itch.io/monkeyx

I have no idea how to use Monkey, but perhaps, the first version can do what you need?

J


RE: Is there a BASIC that compiles Android and Mobile apps? - Waltersmind - 08-25-2017

@MansterSoft

There are no BASIC languages on this planet that will compile to Android. Matter of fact, there are no programming languages in the world that can compile to Android.

But I can here the questions now: "how do people write Android apps?"

That is a good question. They can write the apps in Monkey X as you mentioned, but Monkey X does not compile to Android. Confusing? Yes, it can be when you are unaware of what goes on behind the scenes with Android app development, or even Ios app development. What Monkey X does, as well as what QB64 i suppose to do, they translate their native language into Java (for Android only), and then executes the Google Android Studio SDK, which is over a 2GB download by itself. Google Android Studio then scans the code, checks its validity and security, and then does it magic.

However, this is where things get a bit tricky. You must have an account with Google Play services, and be in good standing with them. If you ever create an app that is mischievous, Google will ban you for life and you will never be able to upload another Android app to their service. It's a one shot deal.

You have to have a Google Play account before you can even upload a Android to your own phone for testing purposes. Google is very strict on security and safety.

When I purchased Monkey Studio for the $99.00 you mentioned over a year ago (they shut the site down now and you can no longer get the studio), I had to download the Android Studio just to make Android apps. That is how I know it is over a 2GB download (Just check, and it states: 1,926MB in size), but that is a compressed installable file. If you wish to write apps for Android, you need to make sure you have have plenty of hard drive space available, I would say at least 30GB or better.

Now, the Android Studio does allow you to test all the apps you created inside the studio itself on a digital Android phone. While it is only a 2D representation of the Android phone you choose to test it on, it operates like a real phone, except for you can't call anyone. But there are other apps you can play with in the phone representation, which is really cool, and not just yours.

For further information, please visit the following links:


Android Developer site: https://developer.android.com/index.html

Android's source code page: https://source.android.com/

Android Developer Studio: https://developer.android.com/studio/index.html

From Quora: https://www.quora.com/What-programming-language-and-software-are-used-to-create-Android-and-iOS-apps

Here is a quote from Android.com (https://www.android.com/security-center/):


"Harnessing data to keep users safe

To build upon Android’s secure foundation, a utility called SafetyNet periodically checks apps, settings, and critical security data from over 1 billion Android devices. If an app steps out of line, Google Play can automatically suspend it. And it all happens under the hood to keep you safe, no matter what version of Android you’re on.

1 billion - Android devices checked per day, globally
8 billion - Apps checked per day, globally"


If you have any questions, please feel free to ask.


Walter Whitman
The Joyful Programmer


RE: Is there a BASIC that compiles Android and Mobile apps? - bplus - 08-25-2017

How about a Basic Interpreter?

https://smallbasic.sourceforge.io/?q=node/195


RE: Is there a BASIC that compiles Android and Mobile apps? - bplus - 08-25-2017

(08-25-2017, 10:55 AM)easylangs Wrote: i have never tried smallbasic as an android solution, but on the pc it is my favourite basic dialect.

Yes, one of my favorites too.

You can run on-line samples from SmallBASIC on your Android Device.

Hey, who is that posting allot of the samples?

Oh yeah, and there's a guy named mennonite that has a sample modified by B+ ;-))

And does Johnno know hes got one or 2 too?


RE: Is there a BASIC that compiles Android and Mobile apps? - Waltersmind - 08-25-2017

@bplus,

Yes, QB64 does have a section on how to create Android apps with QB64, but if you read the first sticky thread in that forum, it tells you basically the same thing I mentioned. You have to download the Android Studio SDK, which at this moment is close to 2GB in size. You also have to download Java Development SDK as well, which I had forgotten about. I have created a simple Android before and was able to test it in Android Studio, and I created an account on Google Play Store, which was a bit tough, but I have yet made anything to sell on there.

The second and third steps that Galleon gave on making an Android app in QB64, reads:

Quote:2) Android Studio requires the Java Development Kit (JDK) 6 or higher (NOT the JRE, JRE will be installed automatically by the JDK), so download & install this first http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html For example, if you are using 64-bit Windows you would download "Windows x64 - jdk-7u79-windows-x64.exe" [~140MB]

3) Download and install Android Studio (includes SDK) with the default options from the following  link [~1.1GB] http://developer.android.com/sdk/index.html (This is a 1.1GB download)

There is also a QB64 Wiki page on it as well, located at: http://www.qb64.net/wiki/index.php/Android_Project

I haven't looked into other languages at this time to use to create Android apps, by as I mentioned before I did purchase Monkey X Studio for $99.00 (US) before it was cancelled recently. But I yet have used it for Android apps. I really use it for PC and web creations.

At this point, I feel that Google play is overwhelmed with Android apps, and I won't be making any games in the near future that could put me ahead of many of them. Why? Well, because I don't have the money or the time to spend on such ventures. I have to spend what time I can, helping people in the programming community as much as I can, and figure out ways to make The Joyful Programmers on this joyful programming site, more joyful and entertained.


Walter Whitman
The Joyful Programmer


RE: Is there a BASIC that compiles Android and Mobile apps? - MansterSoft - 08-26-2017

I of course tried doing the steps to get qb64 android development to work, but it's well known that beyond Hello World it doesn't work and has been abandoned.

I'll have to look into Small Basic and Monkey X1.

Every platform is overwhelmed by games.


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-26-2017

Try RFO Basic ( Basic!).  There are add ons that allow you to produce APKs that can be uploaded onto your Android device.


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-28-2017

I previously submitted a post a couple of days ago, but it hasn't appeared.
Try RFO Basic.  There are various methods by which APK files can be produced.


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-28-2017

Try RFO Basic.

There are various methods by which an APK file can be generated.  It is well documented and has its own forum.  It can be downloaded from the Google Play Store (as can a compiler).


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-28-2017

This is my third attempt to get a post accepted.

Try RFO Basic. You'll find it on Google Play.  It is possible to produce APK files for Android devices.?


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-29-2017

Try RFO Basic.  This can be downloaded from Google Play.  It has many similarities to QB and can produce APK files.  There is a separate compiler for it and other goodies all on Google Play.


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-29-2017

Try RFO Basic obtainable on Google Play.  It can produce APK files and there is also a compiler for it.  It is well supported and has its own forum.


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 08-29-2017

There is possibly a suitable BASIC for Android.

Try BASIC! (RFO Basic) downloadable from Google Play.  It is an interpreter, but there is also a seperate compiler that will produce APK files that is also downloadable from Google Play.

It's been around for a while, is well supported and has its own forum.

Give it a try, it's free!


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW13 - 08-31-2017

BASIC! together with BASIC! Compiler, both downloadable from Google Play (both free), will allow you to produce and compile Basic programs to APK on Android.  It is very similar to QB, is well documented with tutorials and has its own support forum.

It is well worth investigating.


RE: Is there a BASIC that compiles Android and Mobile apps? - johnno56 - 09-25-2017

Quote:And does Johnno know hes got one or 2 too?

I do?

J


RE: Is there a BASIC that compiles Android and Mobile apps? - bplus - 09-25-2017

(09-25-2017, 06:42 AM)johnno56 Wrote:
Quote:And does Johnno know hes got one or 2 too?

I do?

J

Shuffleboard is all yours, Mastermind we worked on together and Bulls and Cows I think you instigated at Sdlbasic forum. Smile


RE: Is there a BASIC that compiles Android and Mobile apps? - johnno56 - 09-25-2017

... how quickly one forgets... lol  (for me, at least, it is par for the course) - Golf pun. "par", "course". Get it? lol... Ooo a Golf simulator... time for more research... and coffee... lol

J


RE: Is there a BASIC that compiles Android and Mobile apps? - RNBW - 09-28-2017

Isn't Smallbasic an interpreter?  There are several Basic interpreters available.  The best compilable Basic I've come across is Basic! (RFO Basic).  
I don't believe Mintoris Basic is compiled but I believe you can produce a standalone program.


RE: Is there a BASIC that compiles Android and Mobile apps? - bplus - 09-28-2017

Yes, as I said in post #5 of this thread, SmallBASIC is an interpreter only. 

If I used Android for file stuff, I would definitely look into Basic! (RFO). I took a peek at the site to see some samples of code and saw some elaborate screen setup but allot of PL's do that... it did seem a foreign (to Quick Basic tradition) kind of Basic but so does the _GL stuff in QB64...

In Windows and .bas extension registered with SmallBASIC, I can click any .bas file and it runs as if an exe or loads into editor depending on SmallBASIC setting. Interpreters are nice for developing code. You click RUN and it runs, no waiting around for compile. It does not run graphics as fast as QB64 but it doesn't do badly and runs circles around JB graphics.

RNBW, if you post code examples of Basic! (RFO), I would sure be interested in following. Maybe even get inspired to get a proper Android device instead of NOOK. Wink