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

Offline Millerszone

  • Dr. Type
  • ****
  • Posts: 307
  • www.smashedfly.com
    • View Profile
    • Smashed Fly
Re: Android - Beta SDK
« Reply #225 on: 2011-May-31 »
GRABSPRITE -all righty. That's a big issue, though! Is it the emulator or a real device?

I copy the icon to:
android+"\res\drawable\icon.png"
where "android" is the directory where the Manifest.xml is inside.
Real device. Galaxy Tab
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Offline 404 Not Found

  • Mc. Print
  • *
  • Posts: 4
    • View Profile
Re: Android - Beta SDK
« Reply #226 on: 2011-Jun-02 »
Some bugs I found in the latest Android build:
- The app still segfaults on exit (i.e. pressing back key)
- Backgrounding the app is buggy: If the app gets killed by the system, everything is fine; if it's still running, the screen shows but it doesn't respond after re-opening
- Pressing "x" on the hardware keyboard exits the app
- Portrait orientation is somehow hardwired, if you want to make a landscape app, you have to (1) select landscape mode in the manifest file to get the right d-pad directions and (2) select a portrait (!) screen resolution in GLB

Does GLB_ON_QUIT already work on Android?
« Last Edit: 2011-Jun-02 by 404 Not Found »

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #227 on: 2011-Jun-06 »
In addition, I think BMP files crash the running program.
X_LINE and/or X_DOT may not be working
GETJOYX and GETJOY seem to be returning data from the wrong direction : Horizontal movement affects the vertical value and vice versa
« Last Edit: 2011-Jun-06 by MrTAToad »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10732
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #228 on: 2011-Jun-07 »
I need help with Andoid, since my device is ..ahem.
Can you set orientation to 0 and hold the device like a phone and then print the JX, Jy, JZ values?

Then, turn the device to lay on it's left side -> again JX, JY, JZ values?
Now, hold it as a phone and slowly tilt it backwards. What values do you get now?


On a Pre/iOS you (oughta) get:
 0,-1, 0
-1, 0, 0
 0, 0, -1

Pre confirmed. iOS surely is, too.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #229 on: 2011-Jun-07 »
I'll see what its like on the Android...

However, my Pre values dont quite match up with on its left side - I get 0, -1, -0.2 (it does fluctuate wildly even what flat!)
« Last Edit: 2011-Jun-07 by MrTAToad »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10732
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #230 on: 2011-Jun-07 »
Did you update to 10.012?

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #231 on: 2011-Jun-07 »
oh yes :)

My Android tablet values are thus (its approximate as it does vary by around +/0.1) :

Starting Orientation 0 :   

-0.2
0
0.1

Turning Left:

0
1
0

Turning Right :

0.2
0
1

Backwards

0
0
1

Forwards :

0
0
-1

I'll have to try the phone when its been charged...
« Last Edit: 2011-Jun-07 by MrTAToad »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10732
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #232 on: 2011-Jun-07 »
The tablet values (as on mine) seem pretty broken. Right+Backwards look almost the same. Starting orientation has a vector of (0.2^2+0.1^2)^.5 = 0.224. That's 1/4 of the earth's gravity (moon?)

Either there's a really bad bug in my code, or these tablets are "not so good" when it comes to orientation and gravity sensors.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #233 on: 2011-Jun-07 »
Got a feeling the results will be the same with the phone...

Will soon know :)

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #234 on: 2011-Jun-07 »
Its completely different for the phone :

Should be:
Code: (glbasic) [Select]
0,-1, 0  upright
-1, 0, 0  to the left
 0, 0, -1  to the back

Is:
Code: (glbasic) [Select]
0,1,0  upright
1,0,0  to the left
-1,0,0 to the right
0,0,1  back
0,0,-1 forward


Changing orientation produces the same values (which is good :) ).  And there is no jittering either...

Again, Chinese tablets prove to be pretty worthless...

[edit] sorry for realigning.

« Last Edit: 2011-Jun-07 by Kitty Hello »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10732
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - Beta SDK
« Reply #235 on: 2011-Jun-07 »
Ah, I think I just have to make them all negative then. Pretty easy. Phew XD.

What device was that, again? I'll make that the reference then :D

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #236 on: 2011-Jun-07 »
HTC Wildfire !  Its the one that cant render rectangles in colour...

And is slow...
« Last Edit: 2011-Jun-07 by MrTAToad »

Offline BigAnd

  • Mc. Print
  • *
  • Posts: 44
    • View Profile
Re: Android - Beta SDK
« Reply #237 on: 2011-Jun-15 »
Trying to update from 10.001 but it keeps crashing on the web update.

Is there anywhere I can download the file and apply it like the hotfixes?

This is on Windows 7 x64.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #238 on: 2011-Jun-15 »
The update.exe update should be either on the first page of this post or somewhere in the General one...

Offline matty47

  • Mr. Drawsprite
  • **
  • Posts: 69
    • View Profile
    • Matt and Marg's Homesite
Re: Android - Beta SDK
« Reply #239 on: 2011-Jun-15 »
Just to confirm that the live update crashes on Win 7 Home Prem. I downloaded the install from post one again, however this is still version 10.001. When I do a web update it tells me version 10.013 is available so I say update. Update runs and lists what it is doing eg read info file etc. When it gets to "Installing Update", it crashes and closes with no further messages except Windows message saying that the program has stopped working.