extractly the same as before, I have not tested with 11.322 yet, because its was needed to been fixed fast, so im just went back to 11.171. SInce 11.171 was nice and stable for iOS, im just used that rather than testing the newer version (but I will do that soon when possible of course, its might have refixed).
Also in 11.261 (all Android talk), I have found some wierd fix for some thing:
1. if im creating a bat file doing this:
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?
2. if I override the BACK key, then multitasking doing much better and dosent crash on back as well home button:
public boolean onKey(View v, int keyCode, KeyEvent event) {
if(keyCode==KeyEvent.KEYCODE_BACK)
{ Log.v("SDL", "keycode_back");
if(!event.isAltPressed()) // some handle alt+back as "circle"
{ Log.v("SDL", "keycode_back w/o alt-key -> finish?");
backpressed=1;
}
return true;
}
if (event.getAction() == KeyEvent.ACTION_DOWN) {
Log.v("SDL", "key down: " + keyCode);
SDLActivity.onNativeKeyDown(keyCode);
return super.onKeyDown(keyCode, event);
}
else if (event.getAction() == KeyEvent.ACTION_UP) {
SDLActivity.onNativeKeyUp(keyCode);
super.onKeyUp(keyCode, event);
}
return false;
}
howover not sure im did modificed onPause() too?
protected void onPause() {
Log.i("SDL", "onPause()");
Log.i("SDL", "glbasicOnPause(1=pause)");
SDLActivity.glbasicOnPause(1); // 1=pause
wl.release(); // Krakatomato
Log.i("SDL", "super.onPause");
super.onPause();
Log.i("SDL", " onPause done");
}
This prevent Android to uses the Back button, which normally will crash when press on that. Howover sometimes its might call GLB_ON_PAUSE sub after pressed the BACK button, which means you need to do a JAVACALL to checkout if the backbutton have been pressed there (something like this):
SUB GLB_ON_PAUSE:
DEPRINT("GLB_ON_PAUSE() start")
LOCAL result$=""
IF device$="a" OR device$="ak"
result$=CallJava$("back")
IF result$="0"
suspend=1
ENDIF
ELSE
suspend=1
ENDIF
ENDSUB
The above was with 11.220 in mind, and im waiting checking the 11.322 later, until im got this bugfix release out for Greedy Mouse.
3. Sound in Android with 11.220 works pretty nice as well, both sound and music (im using either two or three buffers), but if Im use wav and playing them with MUSIC commands as they was sound, then the sound can been gone. That alternative sound fix was to fix eventuelly DELAY issue on some devices (where MUSIC mixer was more "stable" than SOUND mixer). But if you use SOUND commands in normaly way, its do works pretty nice in 11.220
With above in mind, then its take sometime to integrate the modifications to 11.322 im did, which is also why im not upgrade sson as possible, except if a important fix have been made.
4. Landscape orintation can go in wrong orientation, so as Im wrote before you need that java call and use that returned value to fix the orientation. Its was happens on my new Tab2 and its did fixed using that javacall (here im talk in fixed orientation modes, not the "sensor" mode, which works awesome).
POST EDITED TO BEEN MORE CLEAN AND MY GAME.