Author Topic: Android Extras  (Read 5939 times)

Offline fivesprites

  • Mr. Polyvector
  • ***
  • Posts: 101
    • View Profile
    • FiveSprites
Android Extras
« on: 2013-Apr-29 »
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

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Android Extras
« Reply #1 on: 2013-Apr-30 »
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.

Offline fivesprites

  • Mr. Polyvector
  • ***
  • Posts: 101
    • View Profile
    • FiveSprites
Re: Android Extras
« Reply #2 on: 2013-Apr-30 »
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

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4144
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: Android Extras
« Reply #3 on: 2013-Apr-30 »
Cheers Andy :)
I came. I saw. I played.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3611
    • View Profile
    • Space Fractal
Re: Android Extras
« Reply #4 on: 2013-Apr-30 »
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.
« Last Edit: 2013-Apr-30 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 Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5014
  • O Rly?
    • View Profile
Re: Android Extras
« Reply #5 on: 2013-May-01 »
Hmm i can't find the "like-botton" on this forum :(
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 908
  • 96A285CC
    • View Profile
    • my youtube channel
Re: Android Extras
« Reply #6 on: 2013-May-01 »
not tested yet but  :good:

Offline fivesprites

  • Mr. Polyvector
  • ***
  • Posts: 101
    • View Profile
    • FiveSprites
Re: Android Extras
« Reply #7 on: 2013-May-08 »
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



Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3611
    • View Profile
    • Space Fractal
Re: Android Extras
« Reply #8 on: 2013-May-08 »
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 :-).
« Last Edit: 2013-May-08 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 erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4185
    • View Profile
    • Portfolio
Re: Android Extras
« Reply #9 on: 2013-May-08 »
This is going really great! :good:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2613
    • View Profile
Re: Android Extras
« Reply #10 on: 2013-May-09 »
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)

Offline Jonás Perusquía

  • Mr. Polyvector
  • ***
  • Posts: 170
    • View Profile
    • Ditrabox
Re: Android Extras
« Reply #11 on: 2013-May-10 »
Nice job!
Thank you for all your efforts! :D
<HTML><BASIC><EC>
Be free and do good things

Offline fivesprites

  • Mr. Polyvector
  • ***
  • Posts: 101
    • View Profile
    • FiveSprites
Re: Android Extras
« Reply #12 on: 2013-May-15 »
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

Offline veketor

  • Mc. Print
  • *
  • Posts: 21
    • View Profile
Re: Android Extras
« Reply #13 on: 2013-May-18 »
thanks a lot for that great work, all this makes glbasic a lot better  =D

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2613
    • View Profile
Re: Android Extras
« Reply #14 on: 2013-May-18 »
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)