Search
lxdream.org :: lxdream/android/src/org/lxdream/LxdreamActivity.java :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename android/src/org/lxdream/LxdreamActivity.java
changeset 1239:be3121267597
next1241:74f8e11ab4b8
author nkeynes
date Sat Feb 25 21:30:49 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Android support WIP
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/android/src/org/lxdream/LxdreamActivity.java Sat Feb 25 21:30:49 2012 +1000
1.3 @@ -0,0 +1,50 @@
1.4 +/**
1.5 + * $Id$
1.6 + *
1.7 + * Main Lxdream activity
1.8 + *
1.9 + * Copyright (c) 2011 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +package org.lxdream;
1.23 +
1.24 +import android.app.Activity;
1.25 +import android.os.Bundle;
1.26 +import android.util.Log;
1.27 +import android.view.WindowManager;
1.28 +
1.29 +import java.io.File;
1.30 +
1.31 +
1.32 +public class LxdreamActivity extends Activity {
1.33 + LxdreamView view;
1.34 +
1.35 + @Override
1.36 + protected void onCreate(Bundle bundle) {
1.37 + super.onCreate(bundle);
1.38 + view = new LxdreamView(getApplication());
1.39 + setContentView(view);
1.40 + }
1.41 +
1.42 + @Override
1.43 + protected void onPause() {
1.44 + super.onPause();
1.45 + view.onPause();
1.46 + }
1.47 +
1.48 + @Override
1.49 + protected void onResume() {
1.50 + super.onResume();
1.51 + view.onResume();
1.52 + }
1.53 +}
.