@@ -179,8 +179,8 @@ public void onProviderDisabled(String provider) {}
179
179
};
180
180
181
181
// 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);
184
184
185
185
// Set up the communication path to lispd. This will be extended to take over
186
186
// from lispconf eventually.
@@ -249,9 +249,7 @@ static public String runTask(String command, String args, boolean ignoreOutput)
249
249
// TODO Auto-generated catch block
250
250
e .printStackTrace ();
251
251
}
252
- if (process != null ) {
253
- process .destroy ();
254
- }
252
+
255
253
return (output .toString ());
256
254
}
257
255
@@ -291,7 +289,7 @@ public void updateStatus() {
291
289
292
290
String psOutput = runTask ("/system/bin/ps" , "" , false );
293
291
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.
295
293
296
294
if (lispdRunning ) {
297
295
lispCheckBoxLabel .setText (R .string .lispRunning );
@@ -379,6 +377,7 @@ public void onClick(View V) {
379
377
showMessage ("Stop the LISP service?" ,
380
378
true , new Runnable () { public void run () {
381
379
killLispd ();
380
+ lispdWasRunning = false ;
382
381
}
383
382
});
384
383
}
0 commit comments