|
|
|
@ -164,7 +164,7 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
if (MicroPhotoService.isRunning) {
|
|
|
|
|
Intent intent2 = new Intent(MainActivity.this, MicroPhotoService.class);
|
|
|
|
|
try {
|
|
|
|
|
stopService(intent2);
|
|
|
|
|
// stopService(intent2);
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
@ -327,6 +327,7 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(View view) {
|
|
|
|
|
|
|
|
|
|
MicroPhotoService.infoLog("Call stopTerminalService Manually");
|
|
|
|
|
MicroPhotoService.stopTerminalService(getApplicationContext());
|
|
|
|
|
|
|
|
|
|
binding.btnStartServ.setEnabled(true);
|
|
|
|
|