Android API-18 SDK for glbasic v5 (06-11-2013)

Previous topic - Next topic

spacefractal

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
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

bigsofty

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)

Marmor

 :nw: now it compile fine  :nw:

testing on ouya this night !

spacefractal

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
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

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?

Quoteyou 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.

spacefractal

#8
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

QuoteUntil 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.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Ian Price

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

I bet B'lox would be very popular...

Ian Price

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.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/