티스토리 뷰
Android 정책 자체는 OnPause때 다 해제하고,
https://overface.tistory.com/403
GLSurfaceView를 애초에 않쓴다
http://i5on9i.blogspot.com/2013/11/glsurfaceview.html
일부 이상한 것만 사용
// https://github.com/godotengine/godot/blob/master/platform/android/java/src/org/godotengine/godot/Godot.java
public void restart() {
// HACK:
//
// Currently it's very hard to properly deinitialize Godot on Android to restart the game
// from scratch. Therefore, we need to kill the whole app process and relaunch it.
//
// Restarting only the activity, wouldn't be enough unless it did proper cleanup (including
// releasing and reloading native libs or resetting their state somehow and clearing statics).
//
// Using instrumentation is a way of making the whole app process restart, because Android
// will kill any process of the same package which was already running.
//
Bundle args = new Bundle();
args.putParcelable("intent", mCurrentIntent);
startInstrumentation(new ComponentName(Godot.this, GodotInstrumentation.class), null, args);
}
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크