mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2025-04-12 04:00:48 +00:00
java: fix issue Application was shutting itself.
This commit is contained in:
parent
2157488b0e
commit
701c02dae7
3 changed files with 8 additions and 11 deletions
|
@ -32,6 +32,7 @@
|
|||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
|
||||
<activity
|
||||
android:name=".ETLMain"
|
||||
android:hardwareAccelerated="true"
|
||||
android:screenOrientation="landscape" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -44,15 +45,11 @@
|
|||
-->
|
||||
<activity
|
||||
android:name=".ETLActivity"
|
||||
android:alwaysRetainTaskState="true"
|
||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
|
||||
android:hardwareAccelerated="true"
|
||||
android:label="@string/app_name"
|
||||
android:largeHeap="true"
|
||||
android:screenOrientation="landscape" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
</intent-filter>
|
||||
android:screenOrientation="sensorLandscape" >
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
|
|
|
@ -401,8 +401,8 @@ public class ETLActivity extends SDLActivity implements JoyStickListener {
|
|||
@Override
|
||||
protected String[] getLibraries() {
|
||||
return new String[] {
|
||||
// "hidapi",
|
||||
// "SDL2",
|
||||
"hidapi",
|
||||
"SDL2",
|
||||
"etl"
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
package org.etlegacy.app;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.common.io.Files;
|
||||
import com.loopj.android.http.AsyncHttpClient;
|
||||
import com.loopj.android.http.FileAsyncHttpResponseHandler;
|
||||
|
||||
import org.libsdl.app.SDLActivity;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import cz.msebera.android.httpclient.Header;
|
||||
|
||||
public class ETLMain extends SDLActivity {
|
||||
public class ETLMain extends Activity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
|
@ -24,8 +24,8 @@ public class ETLMain extends SDLActivity {
|
|||
final Intent intent = new Intent(ETLMain.this, ETLActivity.class);
|
||||
|
||||
if (etl_pak.exists()) {
|
||||
finish();
|
||||
startActivity(intent);
|
||||
finish();
|
||||
}
|
||||
else {
|
||||
AsyncHttpClient client = new AsyncHttpClient();
|
||||
|
|
Loading…
Reference in a new issue