BASIC

Author Topic: Android - V10 release candidate  (Read 88530 times)

Offline Moebius

  • Dr. Type
  • ****
  • Posts: 315
    • View Profile
Re: Android - Beta SDK
« Reply #135 on: 2011-May-08 »
I'd really like to thank Gernot and anyone else who's put this together because most things are working brilliantly on yet another platform.  :good:

Doing testing on Android, I've noticed that multitouch doesn't seem to be supported (GETMOUSECOUNT returns 1 on my device).  I'm not sure if this is a cause for alarm, but also the values returned by GETJOYX, Y, and Z seem to be rounded off to the nearest multiple of "0.1019318253"...  Simple APK for displaying mouse, joy values: http://www.multiupload.com/79I8CYGRWZ
Will keypresses be implemented on Android?  Many users have hardware keyboards, and there are significant buttons on every device (back button, menu button).
Eventually, it would be good to have control over what the back button does, rather than just quitting the app whenever it's bumped.  Also, apps at the moment seem to crash when the device is put into standby mode, and crash when multitasking (i.e. whenever the home button is used).
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: Android - Beta SDK
« Reply #136 on: 2011-May-08 »
GLBasic Apps working on Android 2.3.4
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #137 on: 2011-May-08 »
I presume it also works on 3.0

Offline Moebius

  • Dr. Type
  • ****
  • Posts: 315
    • View Profile
Re: Android - Beta SDK
« Reply #138 on: 2011-May-09 »
Should have mentioned I'm using 2.3.2 - not officially released yet for my device as well...  So there isn't any accelerometer issue on later versions?
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #139 on: 2011-May-09 »
I don't think multimouse is a good idea. There's a hug majority of deviecs with just one touch.

Offline BigAnd

  • Mc. Print
  • *
  • Posts: 44
    • View Profile
Re: Android - Beta SDK
« Reply #140 on: 2011-May-09 »
@kitty
Cant you just set the mouse count to 1 for those devices?

It totally breaks my game as I have left, right and jump as on screen buttons. I am more than happy to assign them to keys on other devices but my HTC Desire doesn't have any, so my game would be useless on that device if I cant implement multi touch.

Or have I not understood what you mean?


Offline Moebius

  • Dr. Type
  • ****
  • Posts: 315
    • View Profile
Re: Android - Beta SDK
« Reply #141 on: 2011-May-09 »
It would be a shame not to be able to use multitouch...  There are many devices that do support it, and many more will in the future.
I haven't seen anything about getting the maximum number of pointers possible, but to handling multiple pointers in events doesn't seem to be too difficult, at least on the android side of things: http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html
I'm not sure about how multiple mice are handled internally by GLB, but surely multitouch is possible?   :doubt:
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #142 on: 2011-May-09 »
Yes, it's possible. I'll implement it. But I warn you to use it, because many devices are not able to use it and your game will not run there.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4239
    • View Profile
    • Portfolio
Re: Android - Beta SDK
« Reply #143 on: 2011-May-09 »
on the multi-touch issue...

Wouldn´t you think it´s possible to, let´s say, having a check on different screen pressed areas while alternating this between code loops? Would this achieve a ´multi touch´ sort of thing?

just some crazy idea :x

Offline BigAnd

  • Mc. Print
  • *
  • Posts: 44
    • View Profile
Re: Android - Beta SDK
« Reply #144 on: 2011-May-10 »
@kitty
What other input do you have on your phone other than the touch screen?

Just thinking of what else to implement other than touch screen, such as the optical scroll and would we get access to such things through glbasic?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #145 on: 2011-May-10 »
Never heared of "optical scroll". Am I getting old now? :)

I think about touches, keyboard and acceleration values as input.

Offline 404 Not Found

  • Mc. Print
  • *
  • Posts: 4
    • View Profile
Re: Android - Beta SDK
« Reply #146 on: 2011-May-10 »
"optical scroll" is just a different kind of D-Pad. Some of the HTC Desire phones have these:

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #147 on: 2011-May-10 »
Ah. I think that's handled as if it was a dpad (KEY) then.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10719
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #148 on: 2011-May-10 »
Get the update for the beta now. See 1st post.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #149 on: 2011-May-10 »
JPegs on Windows seem fine - now to test Linux, webOS and Android :)

Linux seems okay!
webOS crashes straight out (after a black screen)
Windows CE emulator displays my first image and seems to hang
Android displays two imagew then crashes

There seems to be an extra set of quote marks in the glb_install_and_pack batch file - it seems the palm-package program didn't like that...
« Last Edit: 2011-May-11 by MrTAToad »