QB64 program rewritten to Android - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Prolific Programmers (https://qb64phoenix.com/forum/forumdisplay.php?fid=26) +---- Forum: MasterGy (https://qb64phoenix.com/forum/forumdisplay.php?fid=45) +---- Thread: QB64 program rewritten to Android (/showthread.php?tid=2524) Pages:
1
2
|
QB64 program rewritten to Android - MasterGy - 03-16-2024 Hello ! I want to make programs for android. Unfortunately, I've been programming in Basic for 30 years, and it's hard for my brain to switch to object-oriented programming. I don't see and understand at all how they are built on each other, how things can be connected. A week ago, I tried the development system called B4A (https://www.b4x.com), which is in principle written in Basic, but in practice it could be anything due to the lack of simplicity. I made a program in QB64 in a couple of hours, and then converted it to B4A. I suffered with it for almost 2 days before I rewrote it properly and it finally started. I have attached APK file. This should be launched on Android and the program will be installed. Pretty much the same as the code here. In the qb64 version, the mouse behaves like the touchscreen on the phone. The left mouse button simulates touching the touchscreen, and the move button simulates moving the mouse. fps2_apk.zip (Size: 128.38 KB / Downloads: 54) Code: (Select All)
https://drive.google.com/file/d/1Un1gAY4XwZasXrzA0EviV6ojAW4aQz6n/view?usp=drive_link RE: QB64 program rewritten to Android - a740g - 03-16-2024 Don't have an Android device to test. Perhaps this will run in Windows Subsystem for Android. I'll play with that later. I researched the B4X suite before. The only reason it does not appeal to me is it's dependence on the Java VM and runtime. That was an instant turn off for me. RE: QB64 program rewritten to Android - MasterGy - 03-16-2024 I don't like a lot of things in b4a either, but for now I see this as the easiest solution to run basic on android with minor rewriting. What do you mean ? 'don't have an android device for testing'. I tried it on several phones, it works on all of them. RE: QB64 program rewritten to Android - a740g - 03-16-2024 (03-16-2024, 05:59 PM)MasterGy Wrote: I don't like a lot of things in b4a either, but for now I see this as the easiest solution to run basic on android with minor rewriting. I know its hard to believe. But I do not have any Android phone. I use an iPhone. But I think your apk should run on Windows Subsystem for Android. RE: QB64 program rewritten to Android - MasterGy - 03-16-2024 I misunderstood because of the translation. It translated to me as "don't run it on an Android device". Instead you wrote "I don't have an Android device". I understand now. RE: QB64 program rewritten to Android - a740g - 03-17-2024 (03-16-2024, 10:05 PM)MasterGy Wrote: I misunderstood because of the translation. It translated to me as "don't run it on an Android device". Instead, you wrote "I don't have an Android device". I understand now. No problem. And it works. Nicely done! RE: QB64 program rewritten to Android - dbox - 03-20-2024 Here is another option for running on Android: RE: QB64 program rewritten to Android - Pete - 03-20-2024 Interesting. So since JavaScript can run on Android, I guess my question would be how to generate and install the JavaScript exe on my phone? There are install kits like INNO, and I know DosBox came out with an Android version a long time ago. It was a bit clumsy back then, but maybe by now it is less step ridden to use. Maybe there is a direct PC to phone file transfer method as well. Pete RE: QB64 program rewritten to Android - dbox - 03-20-2024 (03-20-2024, 04:46 PM)Pete Wrote: Interesting. So since JavaScript can run on Android, I guess my question would be how to generate and install the JavaScript exe on my phone? There are install kits like INNO, and I know DosBox came out with an Android version a long time ago. It was a bit clumsy back then, but maybe by now it is less step ridden to use. Maybe there is a direct PC to phone file transfer method as well.I tend to think of it more like this... Javascript IS the exe. The web browser is the virtual OS that is already supported on every platform. RE: QB64 program rewritten to Android - Pete - 03-20-2024 Okay, using the browser as the display surface. So how do we load the JavaScript to the phone and get the browser to execute it? Pete |