blitzbasic

Author Topic: long delay when running my android app on a samsung galaxy or hangs  (Read 320 times)

Offline spudgunjake

  • Mr. Drawsprite
  • **
  • Posts: 56
    • View Profile
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.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *****
  • Posts: 10277
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
is there enough free space?
View the logfile output.

Offline spudgunjake

  • Mr. Drawsprite
  • **
  • Posts: 56
    • View Profile
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.


Offline spudgunjake

  • Mr. Drawsprite
  • **
  • Posts: 56
    • View Profile
stupid question what output file.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *****
  • Posts: 10277
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
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.

Offline spudgunjake

  • Mr. Drawsprite
  • **
  • Posts: 56
    • View Profile
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

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 211
    • View Profile
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.