GLBasic forum

Main forum => GLBasic - en => Topic started by: Szantai on 2012-Apr-04

Title: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
please help me   :good:
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-04
What do you mean by auto-full screen ?  Android screens are full-screen, you just need to make sure the correct resolution for the device is selected.

Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
resizable 800x600 to ... x ...
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-04
I think you have to fiddle around with an xml file - unfortunately I can't remember which, although it is mentioned here somewhere :)

or

You can let the user select the screen resolution and use a base resolution of 320 x 480 (or so) to start with.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
I thought it was a simple
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-04
Nothing with Android is ever simple - thanks to Google... :blink:
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
 :shit:  :)
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
Where do I list the error codes?
"Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:580: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:602: Compile failed; see the compiler error output for details."
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-04
This a first stage error message ?  If so, make sure there are no spaces in the project name.

The numbers are actually line numbers in the build.xml file.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-04
project name is :"MASTERMIND"
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-04
So is it a first or second stage error message ?
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-06
I created a new project.
"hello world"
It is also wrong
"Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:580: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:602: Compile failed; see the compiler error output for details."
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-07
Is the APK being created ?

If not, have you installed Java 32-bit and the SDK ?
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-07
"Is the APK being created ?" -- not build
"If not, have you installed Java 32-bit and the SDK ?" -- jdk1.7.0_03

windows enviroment is set
Last week, it worked... :(
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: okee on 2012-Apr-07
if you compile them as windows applications do they run ok ?
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-07
Are the icon.png files present in with the project ?
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-07
only anroid is bad. win32 ok
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-07
It could be several things :


If possible, make the project available.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-07
icon is ready
file name is correct
java: jdk1.7.0_03

this is configuration made ​​this program and run perfectly.

reinstall is full windows...? or only the devil is playing with me :D :D :D  :whip:
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-07
One other you could try is clean the project.

Can you post the complete output when compiling.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Wampus on 2012-Apr-07
Ugh. I can relate to the pain here.

Many things can go wrong or need adjusting to get back to smooth sailing. Previously I found that having 64-bit Java as well as 32-bit Java SDKs and RTEs was causing all sorts of conflicts and issues with SDKs that require it, including compiling to Android with GLBasic. After a major system crash I reinstalled Win7 then ran into issues with Java 1.7. It worked for a while then, for no reason I could determine, some Java apps were failing or doing odd things. Now I stick to 1.6 only and tread carefully. Seems great so far.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-08
here is a new project.
error is unchanged.
apk is not created.
______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:4cfb7754 - 3D, NET
Wordcount:3 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:580: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:602: Compile failed; see the compiler error output for details.

Total time: 1 second
.
BUILD STAGE 2: Build DEBUG and install on device

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:580: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:602: Compile failed; see the compiler error output for details.

Total time: 1 second
finished Android build-script.
Android=C:\Documents and Settings\LQ75\Asztal\test\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 6.4 sec. Time: 09:37
Build: 1 succeeded.


[attachment deleted by admin]
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-08
i unistall the java7
install java jdk1.6.0_25
same error ...
I am very sad now ... :(
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-08
windows applications is ok
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-08
Good news!  It fails here, so it's just a matter of finding out why...

I believe the cause is that no company name field is found in the project...  Which means your company name field is empty... Might be a bug there...

Anyhoo, I've repackaged your project with a name, and it all compiles fine.

[attachment deleted by admin]
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-08
your project perfectly.
My project does not work.
crazy what is wrong in my machine
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-08
Clean the project and make sure there is a valid company name - then when you compile it should be okay.
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: Szantai on 2012-Apr-08
EHHHEEEYY NICE THANKS MASTER :D  :nw: :nw: :nw:
Title: Re: How to auto fullscreen on android and how to advertisement in game.
Post by: MrTAToad on 2012-Apr-08
No problem!