BASIC

Author Topic: Getting started with Android?  (Read 1069 times)

Offline mlobegeiger2

  • Mc. Print
  • *
  • Posts: 1
    • View Profile
Getting started with Android?
« on: 2013-Feb-14 »
Hi all,
I'm looking at getting started with Android. Can anyone point in the direction of some tutorials or example programs/code that works with the android emulator?

I've tried a few generic programs and they don't seem to compile properly for Android. I assume its due to the different interface...

Any advice on where to start would be greatly appreciated!

thanks

matt

Offline Darmakwolf

  • Dr. Type
  • ****
  • Posts: 341
  • Aoooooooo - the werewolves of London!
    • View Profile
Re: Getting started with Android?
« Reply #1 on: 2013-Feb-14 »
Heya! I would not suggest using the emulator to test GLBasic games for Android, the emulator takes a massive hit to FPS. The best method is to simply compile it for android and drop the .apk onto an actual device. In order to compile for Android, you'll need to install the JDK (google it,) and set the JAVA_HOME environment variable to the JDK's installation path. Then you're all set to compile. Once it's compiled, the glbasic_debug.apk fille will be in the release folder to test. For the most part, you can just press F5 and test from within Windows until you have a working product to test on the device.

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 526
    • View Profile
Re: Getting started with Android?
« Reply #2 on: 2013-Feb-15 »
I don't run Windows much anymore, except to compile GLBasic programs. Once GLBasic creates the .apk mentioned above, I use the Android SDK (google it) on Mac OS to test it on an emulator. True, it is slow, but it does allow you to test for a variety of different devices, which is very useful. In addition, you can test even if you don't have an Android device. I don't have one, I can borrow one sometimes, but in the mean time I can still test. :)

Here are some links I bookmarked. I just set the Android thing up today an have my first app running on my girlfriend's phone. :)

http://www.c-sharpcorner.com/UploadFile/ebac9d/installing-android-sdk-tools-in-windows-xp/

http://developer.android.com/tools/device.html

http://developer.android.com/tools/devices/emulator.html

http://www.basic4ppc.com/forum/basic4android-getting-started-tutorials/6484-connecting-your-device-ide.html

http://www.glbasic.com/forum/index.php?topic=7043.msg71403#msg71403

Hope you find something in there that's useful :)
« Last Edit: 2013-Feb-15 by r0ber7 »