Skip to content

Commit a1ea995

Browse files
author
chris
committed
o ICS related fixes.
1 parent 4e85f63 commit a1ea995

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

lispmonApptuntap/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>LISP Monitor</name>
3+
<name>LISP Monitor TUNTAP</name>
44
<comment></comment>
55
<projects>
66
</projects>
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
#Fri Mar 11 14:51:07 PST 2011
1+
#Mon Jul 16 10:10:29 PDT 2012
22
eclipse.preferences.version=1
3-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4-
org.eclipse.jdt.core.compiler.compliance=1.5
5-
org.eclipse.jdt.core.compiler.source=1.5
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.6
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.source=1.6

lispmonApptuntap/AndroidManifest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.le.lispmon"
4-
android:versionCode="1"
5-
android:versionName="1.0">
3+
package="com.le.lispmontun" android:versionCode="2" android:versionName="2.0">
64
<uses-sdk android:minSdkVersion="8" />
75
<uses-feature android:name="android.hardware.location.gps" android:required="true"></uses-feature>
86
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>

lispmonApptuntap/res/layout/main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
android:background="@drawable/generic_button"
153153
android:layout_width="140dip"
154154
android:layout_height="wrap_content"
155-
android:layout_marginRight="4dip">
155+
android:layout_marginRight="4dip" android:enabled="false" android:visibility="gone">
156156
</Button>
157157

158158
<Button

lispmonApptuntap/src/com/le/lispmontun/lispMonitor.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ public void onProviderDisabled(String provider) {}
179179
};
180180

181181
// Register the listener with the Location Manager to receive location updates
182-
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
183-
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
182+
// locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);
183+
// locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
184184

185185
// Set up the communication path to lispd. This will be extended to take over
186186
// from lispconf eventually.
@@ -249,9 +249,7 @@ static public String runTask(String command, String args, boolean ignoreOutput)
249249
// TODO Auto-generated catch block
250250
e.printStackTrace();
251251
}
252-
if (process != null) {
253-
process.destroy();
254-
}
252+
255253
return(output.toString());
256254
}
257255

@@ -291,7 +289,7 @@ public void updateStatus() {
291289

292290
String psOutput = runTask("/system/bin/ps", "", false);
293291

294-
lispdRunning = psOutput.contains("R /system/bin/lispd") || psOutput.contains("S lispd"); // No zombies only running or sleeping.
292+
lispdRunning = psOutput.contains("R /system/bin/lispd") || psOutput.contains("S /system/bin/lispd"); // No zombies only running or sleeping.
295293

296294
if (lispdRunning) {
297295
lispCheckBoxLabel.setText(R.string.lispRunning);
@@ -379,6 +377,7 @@ public void onClick(View V) {
379377
showMessage("Stop the LISP service?",
380378
true, new Runnable() { public void run() {
381379
killLispd();
380+
lispdWasRunning = false;
382381
}
383382
});
384383
}

lispmonApptuntap/src/com/le/lispmontun/updateConfActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import android.app.AlertDialog;
1717
import android.os.Bundle;
1818
import android.os.Environment;
19-
import android.util.Log;
2019
import android.view.View;
2120
import android.content.DialogInterface;
2221
import android.widget.CheckBox;

0 commit comments

Comments
 (0)