Author Topic: Android Extras (Micro Game Consoles/GPS/Keyboard/Audio)  (Read 55852 times)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3606
    • View Profile
    • Space Fractal
look like the GameStick controller did have the same issue when connected to the Android TV, so im must confirm the standard controller diddent work. That is just fixed in AE.

onGenericMotionEvent() was newer called. Now im uses dispatchGenericMotionEvent() instead, which is more recommered in the Activity (but still using onGenericMotionEvent(), if Ouya is detected).
« Last Edit: 2015-Sep-09 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: 3606
    • View Profile
    • Space Fractal
Because Android Extras is now a integreated part of Glbasic since v14, then im dont thinks this thread should been in code snippet, but changing it to been a news and help thread instead in the general forum. Im will still link to this thread from the sticky news thread (that one im have locked, but im still update it of course).

Anyway.

Android Extras v3.0.0 is released (im are going to reupload now).

- Since its now v3.0.0 is simply because its the first release after glbasic v14, but im do still do full folder zip, because its based on v12, but is usable for v14. The reason im still waiting to the latest fixes from Gernot (there is a SVN, im have uploaded all my fixes). So PRESCALER is not included in this release. Sorry for that.

- This version do now support Android TV devices (Greedy Mouse got finally approved), which in workload is pretty much same as with Ouya, but its does using a another icon (icon_TV_AndroidExtras.png).

- If Ouya is not a target, the icon is now automatic deleted. This is checked if its can fine the icon_ouya_AndroidExtras.png file or not.

- There is some optimizing and fixes to the GameInput.API, which is required for gamepad support (since im wont using the old Android.GameController$() anymore, its was too compliced.
« Last Edit: 2015-Sep-13 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: 3606
    • View Profile
    • Space Fractal
Now im taking a look into Razer TV (succesor for Ouya), which should been straigt away after got it working on Android TV. Its the same system, except its also can uses ouya storefront and games its have.

So glbasic is expanding for Android TV as well the new Apple TV. Greedy Mouse got approvede for Amazon Fire TV as well.
« Last Edit: 2015-Sep-15 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: 4144
  • On the shoulders of giants.
    • View Profile
    • My Apps
I came. I saw. I played.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I updated source and platform packages now.

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
Excellent News.
Will Camera access make it onto AE at some point?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3606
    • View Profile
    • Space Fractal
Currently this month would been getting Apple TV support. This is treated as a new platform. Hopefully I'm get it work before official release (I'm are one of the lucky winner of a Apple TV Dev Kit, and is currently waiting for the postage).

For Android wise, the focus was set also on TV too, here Android TV, Forge TV and Fire TV. All those is quite similar.

I'm will update my source too as well. Then eventually send you eventually changes I'm have done.

Please note: I'm want DEBUG command deprecated for IOS and tvOS. It's impossible to use that command due compiler conflict. STDOUT should been used instead..
« Last Edit: 2015-Sep-16 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 Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
I'll see about that debug command. Can you zip me an xcode project?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3606
    • View Profile
    • Space Fractal
I'm doing that later today or this week, when I'm have updated it. I'm do means I'm earlier have send one.
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: 3606
    • View Profile
    • Space Fractal
Im can still not update Android Extras, because that what the source code files have been uploade is impossible to download, because they was not zipped down. Im dont want to click 10000 files one after one. Its would been nice if its was  using the FTP protocol instead of HTTP, then its would been much easier.

Hence im can also not send the xCode and the iOS project based on the newer source code as well.
« Last Edit: 2015-Sep-22 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 msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Thank you for your job.

It is possible to know the GPS precision?. I need to know when the GPS is prepared for working.

Offline fivesprites

  • Mr. Polyvector
  • ***
  • Posts: 101
    • View Profile
    • FiveSprites
I don't think the GPS code has been updated since I wrote it a long time ago.  However, it should still work correctly, but it does not report the accuracy of the GPS link.

You have access to lat, lon, speed, bearing and altitude.  It's not hard to update AndroidExtras to include the Accuracy.  Unfortunately, I don't have time to do that these days, but Spacefractal may be able to.

Simply add a new function to AndroidGPS.java called getAccuracy and return location.getAccuracy();  Then update SDLActivity.java and add a new entry for "getGPSAccuracy" and return andreoidGPS.getAccuracy().  The final thing to do is add a new function in AndroidExtras.gbas - call it getGPSAccuracy and fire off a JAVACALL as per the other getGPS functions to "("getGPSAccuracy:");

Again, Spacefractal may be able to help more here as I've not looked at the more recent code in a long time.

Note: You won't start getting valid values back from any getGPS... call until a satellite fix has been made. 

//Andy
« Last Edit: 2016-Apr-19 by fivesprites »

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Ok, fivesprites. I will try.

Thx