Android Extras

Previous topic - Next topic

fivesprites

Hi All,

For those interested in GLBasic Android development, I've put a small compilation of extras into the Code Snippets section:

http://www.glbasic.com/forum/index.php?topic=9166.0

This allows you to use GPS, Virtual Keyboard and enhanced audio.

Enjoy :)

//Andy

spicypixel

Not had chance to test this yet Andy, but I did read the readme and it looks like a great little library. Wonder what other additions you may add in the future :D
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

fivesprites

Thanks spicypixel!

Trying to get the Camera to work at the moment - but don't hold your hopes on that one - no idea how to make the resulting texture available to GLBasic apps!

Possibilities for the future are camera flash, logcat capture and one I really want to get working: updating assets (your music/sound/images) in real-time :)

Unfortunately... work, kids, no time  :S

//Andy

Ian Price

I came. I saw. I played.

spacefractal

#4
im did a semi automatic assests where assests got updated if the filesize have been changed, so not the whole assests got compied.

Im thinkgs its allready in the code snippet, so just use that and spice that up in a more user friendly mode. Property instead of LOADSPRITE, its could been SPRITELOAD function, which copy a eventuelly assest file first, and then read the file.

The only downside is you need to create the folders by your self, before updatins, else elsewise CopyAssest will go wrong.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Schranz0r

Hmm i can't find the "like-botton" on this forum :(
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Marmor

not tested yet but  :good:

fivesprites

Hi All,

Will be providing a small update to AE soon.  Here's what included:

- Fixes for pause/resume (also some extra calls to allow you to determine if textures need reloading on resume - OpenGL context is trashed on some devices like the Galaxy S1 so you need to reload ALL images!)

- Fixed a bug with GPS - it currently always starts when it should only do that when explicitly called to start! DOH!

- Spacefractal has kindly given me some code to add to the Android Extras for copying assets around as well as Google Licensing

Camera support along with better asset management (accessing files from the APK rather than duplicating them on phone storage as part of the install) are also on the to-do list.

Google is also (apparently) working on a GameCentre type thing but I would imagine that it will only be available in new API's.  So, I'm currently working on support for Swarm (http://swarmconnect.com/introduction).  That should at least provide a stop-gap for people that need a similar solution.

//Andy



spacefractal

#8
Last time I'm failed integrate kiip as well ads network. But it's seen we got all fixes correctly, so it more possible as well.

So I'm will return to look on that in some time.

Also make sure, you still can compile to other platforms with minimum effoct. I'm could not acces assets directly, but that one ok did worked nice and could eventuelly delete them with low memory again.

Don't forget add the missing glbasic function for orientation.

But we'll done :-).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

erico

This is going really great! :good:

bigsofty

Wow, this is really blossoming into a great little lib, well done!  :good:
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)

Jonás Perusquía

Nice job!
Thank you for all your efforts! :D
<HTML><BASIC><EC>
Be free and do good things

fivesprites

Ok, due to the announcement of the new Google Play Services (leaderboards etc), I'm dropping the SwarmConnect stuff and am now implementing the Google API. 

http://googledevelopers.blogspot.co.uk/2013/05/introducing-google-play-game-services.html

It supports all devices from API level 2.2 upwards so should work great without too much worry.

I'll be making a start on this shortly so won't be releasing any new Android Extras for now.  Actually, I may wait until Kitty releases a new GLB beta anyway - so somebody hurry him along please ;)

//Andy

veketor

thanks a lot for that great work, all this makes glbasic a lot better  =D

bigsofty

Sticky please?  :good:
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)