mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-17 22:21:27 +02:00
26 lines
667 B
Java
26 lines
667 B
Java
package mw.gri.android;
|
|
|
|
import android.app.NativeActivity;
|
|
import android.content.res.Configuration;
|
|
import android.os.Bundle;
|
|
import android.system.ErrnoException;
|
|
import android.system.Os;
|
|
import android.util.Log;
|
|
import android.view.WindowManager;
|
|
|
|
public class MainActivity extends NativeActivity {
|
|
|
|
static {
|
|
System.loadLibrary("grin_android");
|
|
}
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
try {
|
|
Os.setenv("HOME", getExternalFilesDir("").getPath(), true);
|
|
} catch (ErrnoException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
super.onCreate(savedInstanceState);
|
|
}
|
|
} |