Author Topic: Android API-18 SDK for glbasic v5 (06-11-2013)  (Read 23320 times)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
here is the sdk and ndk used in this android folder (you should backup yours before trying this folder of course):
SDK used: http://developer.android.com/sdk/index.html and include api-14 and api-16 platforms. default pointing to api-14

api-16 can been changed to api-14, if you change --target "android-16" to --target "android-14" in the file Android\bin\glb_build.bat.  api 8 is not included, but here you can use that one include by glbasic and copy that to the platfroms folder (im thinks you can see the structure how the sdk works here).

This also include AndroidExtras as well.

EDIT 06-05-2014 - include ANDROIDEXTRAS v2.2 with SDK API-18, require installation for easier replacing correctly files:
https://www.dropbox.com/s/zilor611dlv62d8/setup-androidextras2-2fixed-withsdk18-glbasic.exe
« Last Edit: 2014-May-06 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16
« Reply #1 on: 2013-Aug-06 »
here is as new version, which contain anything im use in the Android folder for API-16 and should also works with AndroidExtras and OUYA too (v1.4 Beta 2 is included here):

http://www.spacefractal.com/files/GlBasic-Android-api16.zip

PS. With this time its being uploaded right now and will take about half hour (total size should been 448.151.559 bytes).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2640
    • View Profile
Re: glbasic with Android API-14 and API-16
« Reply #2 on: 2013-Aug-06 »
This is very appreciated Spacefractal, thank you!  :nw:
BTW IIRC this solves the non-responding ADB problem too for the  newer Jellybean releases.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 911
  • 96A285CC
    • View Profile
    • my youtube channel
Re: glbasic with Android API-14 and API-16
« Reply #3 on: 2013-Aug-06 »
 :nw: now it compile fine  :nw:

testing on ouya this night !

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16
« Reply #4 on: 2013-Aug-06 »
thanks, one thimg im did disabled, this version does not try to install automatic under compiling. you must done that trought ADB manually (which is what im prefer, because its sometimes stuck to much).

Howover here is the bat file im uses:
Code: GLBasic [Select]
adb.exe install -r "D:\Dokumenter\Programmer\Glbasic\GLBasic\Karma_Miwa\distribute\Android\bin\glbasic-debug.apk"
 

if ADB stuck, use this for OUYA:
Code: GLBasic [Select]
adb kill-server  
echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"  
adb start-server
 

more info:
https://devs.ouya.tv/developers/docs/setup

PS. Im like to see what you doing with the sdk of course  =D
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16
« Reply #5 on: 2013-Aug-07 »
Those with have android 2.3, I'm would been happy to checkout if this works on those device. I'm uses some API-12 features, but should not been issue.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16 v2
« Reply #6 on: 2013-Oct-04 »
finally updated the api14+16 sdk with added ANDROIDEXTRAS and the tempproject, based on v1.4.4 (which include Gamecontrollers + inapp purchases + various other things by Five Sprites).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4148
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: glbasic with Android API-14 and API-16 v2
« Reply #7 on: 2013-Oct-05 »
Sorry for being a complete Android and OUYA noob, but what do I do with this latest .zip file? Do I just replace a certain folder(s) in GLB or somewhere else on my pc?

Quote
you must done that trought ADB manually (which is what im prefer, because its sometimes stuck to much).
Code: GLBasic [Select]
adb.exe install -r "D:\Dokumenter\Programmer\Glbasic\GLBasic\Karma_Miwa\distribute\Android\bin\glbasic-debug.apk"
I presume I do that from Commandline (rather than from GLB) and change the settings to match my pc and game? Do you have to use this command every time you want to compile your app?

Thanks for your help :)

I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16 v2
« Reply #8 on: 2013-Oct-06 »
ooops, im forgot to change the path back to the default. Im fix that in the next update. Im removed the install path, because APD got me a LOTS of issues.

Im see im can get this back again in glb_build.bat as the build 3 phase.

Until then, create a bat file and invoke that with the changed path to your own apk. This should install the game to your device.
« Last Edit: 2013-Oct-06 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4148
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: glbasic with Android API-14 and API-16 v2
« Reply #9 on: 2013-Oct-06 »
Quote
Until then, create a bat file and invoke that with the changed path to your own apk. This should install the game to your device.
I haven't got a clue how to do that. I really am totally dumb at anything like that. I can make games till the cows come home, but anything like this is just out of my league.

I really need an idiots guide. I can compile for Android just fine, but what I do with the new stuff for OUYA I haven't got a clue. That's why I salute people like yourselves that are helping the community with stuff like this.

Cheers :)
I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16 v2
« Reply #10 on: 2013-Oct-08 »
Im have a lots of ADB trouble in the past, which is why im removed the install APK part, which im should added back again. Im look on that later this week.

By now you can do something like that....


startouyadriver.bat (should only do that once, if the ADB fails to install).
Code: GLBasic [Select]
adb kill-server  
echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"  
adb start-server
 

To install the game using bat file, do this:

Code: GLBasic [Select]
d:
cd "D:\Programmer\GlBasic_v11_beta4\Compiler\platform\Android\android-sdk-windows\platform-tools
adb.exe install -r "
D:\Dokumenter\Programmer\Glbasic\GLBasic\Greedy_Mouse\distribute\Android\bin\glbasic-debug.apk"

You should of course change the first path where the glbasic have been installed. The second path is the full path to the glbasic-debug.apk. When you have created those two files, then dobule click from Explorer shoul do the job.

Again im see can do a more automatic install again, due ADB seen much more stable with the new SDK.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4148
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: glbasic with Android API-14 and API-16 v2
« Reply #11 on: 2013-Oct-08 »
Cheers Spacefractal.

Once I finally get the time to turn the OUYA on (seriously, I've had it nearly two weeks now and all I've done with it is enter my details and do the update - that's it :() I'll let you know how it goes. But expect more questions soon. I'm more than willing to contribute to a drink or two (or more) for your assistance once I'm up and running (that goes for anybody else involved too :))

I'm finding that with my (temporary) work changes and my son starting college I'm getting absolutely zero time for coding nowadays. But hopefully that will all sort itself out soon. I can't wait to get AquaVenture and some of my other games up and running on the OUYA. Just for myself if nothing else!
I came. I saw. I played.

MrTAToad

  • Guest
Re: glbasic with Android API-14 and API-16 v2
« Reply #12 on: 2013-Oct-09 »
I bet B'lox would be very popular...

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4148
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: glbasic with Android API-14 and API-16 v2
« Reply #13 on: 2013-Oct-09 »
B 'lox! has never been particularly popular on any format. I doubt OUYA will turn that around, but I'll try to get it on there anyway.
I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: glbasic with Android API-14 and API-16 v2
« Reply #14 on: 2013-Oct-10 »
im still still look for a more automatic installation, OUYA support is still very unoffcial and Gernot have not implemented it at all. Im see what im can in this week.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.