ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel
  • »
  • Technology»
  • Computers & Software»
  • Computer Science & Programming»
  • Programming Languages

Run QBASIC on Android

Updated on September 22, 2012
aDOSbox Icon
aDOSbox Icon | Source

QBASIC is a simple programming language. It was made and launched in 1964 by John G. Kemenny and Thomas E. Kurtz. QBASIC is now owned by Microsoft. QBASIC stands for Quick Beginners’ All-purpose Symbolic Instruction Code. It has simple commands like CLS, Input, Print, Let, GOTO, IF…THEN etc. QBASIC has Characterized User Interface (CUI). It is similar to MS-DOS. Almost all the Microsoft OS can run QBASIC.

Android is a Linux-based Mobile Operating System. It is found in many Samsung phones like Samsung Galaxy Series. Nearly all the PC Tabs use Android OS. Android users enjoy many advanced features that are not found in PCs. What if they could create small programs in their phones? Yes, they can by using QBASIC.

But, there is no QBASIC application on Google Play. How will they create programs? It’s simple with aDOSBox. It is an Android DOS Emulator.

Let’s start programming!

- The first thing you will have to do is download aDOSBox (Android DOSbox) to your Android Device. Here is the URL: https://play.google.com/store/apps/details?id=org.hystudio.android.dosbox

- After it is installed, you can open it and explore the app. The font maybe too small, but it is readable. Some phones have small screen, so there might be a problem understanding the texts.

Source

- Now, the final thing you need is the QBASIC application. This is a Windows application, not Android. You might have the QB.EXE or qbasic.exe file on your computer.

- Copy it to your SD Card. Make a folder called “QBASIC” and move the QBASIC application to it.

- Open aDOSbox.

- Type the command ‘CLS’ and press enter.

You’ll be seeing this:

After using CLS command
After using CLS command

- Then, type the following:


mount d /sdcard/qbasic

- Note that there is a space between d and /

- After that, /sdcard/qbasic will be mounted as local directory.

- Type d:

- You will be taken to D: directory i.e. SD Card. C: is Phone Memory and D: is the SD Card.

- Type the name of the QBASIC application present inside the QBASIC folder. If it’s QB.exe, then type QB.exe and press enter

- After a second or two, the QBASIC screen appears!

You will have to learn how to move mouse pointer yourself. It’s not that difficult. You first need to enable Mouse Emulation feature. When you slide your finger to right, the mouse pointer moves right. Take it to the desired place and press anywhere on the screen to click on the menu or area. My phone screen is small, so the font size is small and the graphics are not clear. However, QBASIC works the same way on your phone as in the computer. You can save programs, run them, change background color, create subs etc. If you want to exit QBASIC, then click on File and then Exit. The experience is amazing in a Tablet.

Check out some screenshots:

A program's output that shows the multiplication table of any entered number
A program's output that shows the multiplication table of any entered number
It's not fake!
It's not fake!
All the commands work. Even the LOCATE statement.
All the commands work. Even the LOCATE statement.
Program for the above output
Program for the above output
Simple Menu
Simple Menu
After you quit QBASIC
After you quit QBASIC

Check out some QBASIC programs here: http://ronny2005.hubpages.com/hub/QBASIC-Programs

Share your experiences on comment. Thank you. Have fun!

Does it work?

See results

Comments

    0 of 8192 characters used
    Post Comment

    • profile image

      xTechKR 5 days ago

      That was great! This post was just great. I also post similar kind of posts. Do visit this link:-

      https://xtechkr.blogspot.com

    • profile image

      Manav 2 years ago

      Its telling me thAth this directory doesn't exist

    • profile image

      TomyYoung 3 years ago

      Yes Html is allowed in comments gate

    • profile image

      TomyYoung 3 years ago

      Tes Ye me o k Yes html allot