diff --git a/project/AndroidManifest.xml b/project/AndroidManifest.xml index 790306167..6aa3f5dc2 100644 --- a/project/AndroidManifest.xml +++ b/project/AndroidManifest.xml @@ -3,6 +3,7 @@ package="com.sourceforge.sc2" android:versionCode="1001" android:versionName="1.0.01" + android:installLocation="preferExternal" > diff --git a/project/src/MainActivity.java b/project/src/MainActivity.java index 94aa8bd7c..3a46f6243 100644 --- a/project/src/MainActivity.java +++ b/project/src/MainActivity.java @@ -10,6 +10,7 @@ import android.view.Window; import android.view.WindowManager; import android.os.PowerManager; import android.widget.TextView; +import android.content.res.Configuration; public class MainActivity extends Activity { @@ -124,6 +125,15 @@ public class MainActivity extends Activity { mGLView.onTouchEvent(ev); return true; } + + @Override + public void onConfigurationChanged(Configuration newConfig) { + super.onConfigurationChanged(newConfig); + if(mGLView != null) + setContentView(mGLView); + else + setContentView(_tv); + } public void setText(final String t) { diff --git a/readme.txt b/readme.txt index ced004d16..d46d8df83 100644 --- a/readme.txt +++ b/readme.txt @@ -169,16 +169,13 @@ Anyway, SDL should sleep inside SDL_Flip() and re-create all HW textures when it 5. Export phone vibrator to SDL - interface is available in SDL 1.3 -6. Java downloading part seems unstable - it often truncates files. - Games to port ============= -Ur-Quan Masters (epic game, must have) +TeeWorlds +SuperTux LBreakout2 Commander Genius (only data files for shareware version available for free) OpenJazz (only data files for shareware version available for free) OpenLieroX (will be damn hard to do, I wrote the code partially) -TeeWorlds (only if they have nice clean code) AdvanceMAME (they already have their own port, yet it's unfinished) -Star Flight: The Lost Colony