Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Armoured

#1
Quote from: spacefractal on 2012-Jun-25
Software rotation if locked in a orientation is not real deal on android. I have been issues in some devices, system rotation did not work.

I reported that bug long time ago and I posted a video what it could happens when surface change: glbasic did nothing.

Not sure it's fixed in current v11 beta, but its should have been refixed again after the hd crash, and yes it's should return new values in GETSCREENSIZE when happens.

Thanks mentalthink and spacefractal,
I think that fix this bug must have an high priority for GLBasic.  ;/
#2
Quote from: mentalthink on 2012-Jun-24
Hi Armour I think about this answer I think it´s not... because "GETDESKTOPSIZE" and "GETSCREENSIZE normally you don´t have to use into the main bucle... but if you make a call into the bucle when you rotated the screen I think, the values in x pass to y, and viceversa... How I told you, I´m not sure.

Hi mentalthink,
On Android if the device rotate the screen  from portrait to landscape x and y in these commands aren't swapped.
Another problem is the "GETORIENTATION()" command that always return a top orientation.
#3
Hi,
In the incoming version of GLBasic the commands "GETDESKTOPSIZE" and "GETSCREENSIZE" rotate their results when I change the orientation of the display?

Thanks
#5
Now it works!  :good:
I follow these two steps:

1)  I have created a key for the debugger with this command in the cmd window.
Code (glbasic) Select

C:\Users\YourUserName\.android>"c:\Program Files\Java\jdk1.7.0_03\bin\keytool.exe" -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname "CN=Android Debug,O=Android,C=US"


2) I have created a folder named "add-ons" in "C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\"

Thanks MrTAToad and mentalthink.  :booze:
#6
Ok!
I have the last version of GLBasic (10.283) with the 32 bit JDK 7 but when I try to compile, for example "Scramble.gbas", for Android I have these errors:

Code (glbasic) Select

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:******* - 3D, NET
Wordcount:825 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE
Exception in thread "main" java.lang.RuntimeException: Failed to create Q:\Compiler\platform\android\android-sdk-windows\add-ons.
at com.android.sdklib.SdkManager.loadAddOns(SdkManager.java:665)
at com.android.sdklib.SdkManager.createManager(SdkManager.java:144)
at com.android.sdkmanager.Main.parseSdk(Main.java:221)
at com.android.sdkmanager.Main.run(Main.java:118)
at com.android.sdkmanager.Main.main(Main.java:102)
Buildfile: build.xml does not exist!
Build failed
.
BUILD STAGE 2: Build DEBUG and install on device
Buildfile: build.xml does not exist!
Build failed
finished Android build-script.
Android=C:\Users\Marco\Documents\GLBasic\Samples\_Projects_\Scramble\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 6.2 sec. Time: 05:34
Build: 1 succeeded.


Why?
#7
Quote from: MrTAToad on 2012-Jun-20
No, it uses the NDK - and Java

Yes, but what version of Java?
#8
Hi :)
GLbasic can compile android applications with Java 7 SDK?

Thanks.