GLBasic forum

Main forum => GLBasic - en => Topic started by: spudgunjake on 2011-Dec-19

Title: long delay when running my android app on a samsung galaxy or hangs
Post by: spudgunjake on 2011-Dec-19
I have been having this problem for a while, My apps has 143 mb of graphic and data, the data is copied from media to the assets directory as it should on compile.

but it hangs when I run the app, if I delete the media dirtectory or rename it. so it doesnt get copied, it work fine.

I have tried it with a simple loop, with and without the media directory and its always hangs if the the media directory in place..

I have coded the routine just to start and then come out, its like its got stuck loading something. is there some thing im doing wrong.
Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: Kitty Hello on 2011-Dec-19
is there enough free space?
View the logfile output.
Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: spudgunjake on 2011-Dec-19
got 4 gig on internal memory.

if I force quit, and then run, its works, goes straint in, but the graphics dont get loaded, or at least some do and some dont.

Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: spudgunjake on 2011-Dec-19
stupid question what output file.
Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: Kitty Hello on 2011-Dec-20
in compiler/platform/android/bin, there's a file "_Logview.bat" - it prints all debug information and your STDOUT commands.

Please remove the app and re-upload it. It seems to have not written all assets to readable space.
Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: spudgunjake on 2011-Dec-20
all its says is this.


@ECHO OFF

:: install Android SDK, Android NDK
:: install JDK


set HERE=%~dp0

set ANDROIDSDK=%HERE%..\android-sdk-windows
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_24


set PATH=%JAVA_HOME%\bin;%PATH%

"%ANDROIDSDK%\platform-tools\adb.exe" shell logcat glbasic:I SDL:I *:S


IF "%NOPAUSE%"=="" PAUSE
Title: Re: long delay when running my android app on a samsung galaxy or hangs
Post by: Minion on 2011-Dec-20
Spud,

You need to run that batch file (a command window will pop up), then run your app on your phone. As the app runs, debug details will appear in the command window, and hopefully show details of where/why its pausing. You can then C/P the contents of the command window here and someone can look at it and decipher it.