diff --git a/briar-android/src/net/sf/briar/android/helloworld/HelloWorldActivity.java b/briar-android/src/net/sf/briar/android/helloworld/HelloWorldActivity.java index 34fdc41323202ebcca8708c95577727e4a2d9a0f..281267ae5efaf2836182f08844ab5687a51a6479 100644 --- a/briar-android/src/net/sf/briar/android/helloworld/HelloWorldActivity.java +++ b/briar-android/src/net/sf/briar/android/helloworld/HelloWorldActivity.java @@ -157,12 +157,13 @@ implements OnClickListener, DatabaseListener { if(LOG.isLoggable(INFO)) LOG.info("Shutting down service"); service.shutdown(); service.waitForShutdown(); - if(LOG.isLoggable(INFO)) LOG.info("Service shut down"); - // Unbind from the service and finish the activity + // Unbind from the service, finish the activity, and die runOnUiThread(new Runnable() { public void run() { unbindService(serviceConnection); finish(); + if(LOG.isLoggable(INFO)) LOG.info("Exiting"); + System.exit(0); } }); } catch(InterruptedException e) {