Added configurable readme section to ChangeAppsettings.sh that will be shown when data is downloading

This commit is contained in:
pelya
2010-07-07 18:36:57 +03:00
parent 8895adf61e
commit 87265514cb
7 changed files with 33 additions and 15 deletions

View File

@@ -4,7 +4,6 @@
android:versionCode="1"
android:versionName="1.0">
<application android:label="@string/app_name"
android:debuggable="true"
>
<activity android:name=".MainActivity"
android:label="@string/app_name"

View File

@@ -18,8 +18,6 @@ import android.widget.TextView;
// Accelerometer code partially ripped from http://karanar.net/
class AccelerometerReader implements SensorListener {
private long timekeeper;
private float [] v;
private SensorManager _manager = null;
@@ -29,7 +27,6 @@ class AccelerometerReader implements SensorListener {
_manager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
if( _manager != null )
{
timekeeper = android.os.SystemClock.uptimeMillis();
int mask = 0;
//mask |= SensorManager.SENSOR_ORIENTATION;
mask |= SensorManager.SENSOR_ACCELEROMETER;
@@ -45,8 +42,6 @@ class AccelerometerReader implements SensorListener {
}
public synchronized void onSensorChanged(int sensor, float[] values) {
//if (android.os.SystemClock.uptimeMillis() < timekeeper + 20) return;
timekeeper = android.os.SystemClock.uptimeMillis();
if (sensor == SensorManager.SENSOR_ACCELEROMETER) {
if( values.length >= 1 )
@@ -61,7 +56,6 @@ class AccelerometerReader implements SensorListener {
}
public synchronized void onAccuracyChanged(int i, int i1) {
/* @todo implement method */
}
public synchronized float[] readAccelerometer()

View File

@@ -104,7 +104,7 @@ class DataDownloader extends Thread
public String text;
public void run()
{
Status.setText(text);
Status.setText(text + "\n" + Globals.ReadmeText);
}
}
Callback cb = new Callback();

View File

@@ -21,6 +21,9 @@ class Globals {
// Set this value to true if you're planning to render 3D using OpenGL - it eats some GFX resources, so disabled for 2D
public static boolean NeedDepthBuffer = false;
// Readme text to be shown on download page
public static String ReadmeText = "^Use accelerometer to navigate menus and control ship^Press \"Menu\" to select menu and for secondary fire^Press \"Call\" or touch screen for primary fire^Press \"Volume Up/Down\" to cycle through weapons".replace("^","\n");
}
class LoadLibrary {