Starting service.
This commit is contained in:
parent
5c9426ff92
commit
f03906408a
|
|
@ -1,5 +1,6 @@
|
|||
package com.proculite.logmylocation;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
|
|
@ -13,6 +14,10 @@ public class MainActivity extends AppCompatActivity {
|
|||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Intent serviceIntent = new Intent(this, LocationLoggingService.class);
|
||||
startService(serviceIntent);
|
||||
|
||||
EdgeToEdge.enable(this);
|
||||
setContentView(R.layout.activity_main);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue