Quote1. if im creating a bat file doing this:
Code: [Select]
c:
cd "C:\Program Files (x86)\Android\android-sdk\platform-tools"
adb.exe install -r "D:\Dokumenter\Programmer\Glbasic\GLBasic\Greedy_Mouse\distribute\Android\bin\glbasic-debug.apk"
Then its seen ABD being much more stable than rather to trying to install with the glbasic default ant. Its still fail, but easier to see when its fail. So Im think a seperate bat file for installing ABD is a better what rater than trying to install directly?
I've found that it's better to uninstall the application before installing it. This ensures the media folder is cleared out too (which has caused me a few headaches in the past!). To do this automatically, modify the glb_build.bat file and add the following before ::install (debug?)
Code (glbasic) Select
echo "Uninstalling"
:: uninstall (debug)
call "%ANDROIDSDK%\tools\ant\bin\ant.bat" debug uninstall
You should also refrain from doing anything in onPause() as that is no longer used by SDL (uses a native callback instead and onPause is commented out in newer versions of the beta).
I couldn't get sound/music to work at all in 11.322. However, it's a moot point as GLB sound wasn't flexible enough (I needed to adjust the volume of sounds already playing). Instead, I updated the SDLActivity to use SoundPool's and also a Mediaplayer instance for music.
I can now control the volume/rate of sounds already playing and the music plays great - no performance issues and it loops correctly.
Pause/resume seems to work ok on some devices (nexus 7 for example), but will crash the app on others (galaxy s1).
Andoid is a NIGHTMARE!