public String getTestUuid() { if (testTask != null) { return testTask.getTestUuid(); } else { return ConfigHelper.getLastTestUuid(getApplicationContext(), true); } }
@Override public void taskEnded() { unlock(); removeNotification(); handler.removeCallbacks(deadman); completed = true; sendBroadcast(new Intent(BROADCAST_TEST_FINISHED)); stopSelf(); if (testTask != null) { ConfigHelper.setLastTestUuid(getApplicationContext(), testTask.getTestUuid()); } Log.i("RMBTService", "stopped!"); }