ui/app: introduce DataDir for application-specific data files

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-07 00:00:54 +02:00
parent 48786bbd05
commit f56e082cc7
6 changed files with 86 additions and 5 deletions
+2 -4
View File
@@ -12,16 +12,14 @@ import android.view.WindowManager;
public class GioActivity extends Activity {
private GioView view;
static {
System.loadLibrary("gio");
}
@Override public void onCreate(Bundle state) {
super.onCreate(state);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Window w = getWindow();
w.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
}
this.view = new GioView(this);
setContentView(view);
}