Android - V10 release candidate

Previous topic - Next topic

Millerszone

Quote from: Kitty Hello 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

404 Not Found

#226
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?

MrTAToad

#227
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

Kitty Hello

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

#229
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!)

Kitty Hello

Did you update to 10.012?

MrTAToad

#231
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...

Kitty Hello

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

Got a feeling the results will be the same with the phone...

Will soon know :)

MrTAToad

#234
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.


Kitty Hello

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

#236
HTC Wildfire !  Its the one that cant render rectangles in colour...

And is slow...

BigAnd

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

The update.exe update should be either on the first page of this post or somewhere in the General one...

matty47

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.