I am Leyman in making an app
My app muss run for hours and handsfree
So the procedure is that i want to have my location every 30 seconds and a display on my screen
So my app cant be killend nu the systrm
Hoe do i do that
Or is the app not killes because there is every 30
Seconds activity
I dont understand completely your solution.
My app as a routenavigstion app does four things
1 gets the location
2 display the data
3 move the marker on the map
4 reads out loud the navigation data
I like to keep the app running for hours . I have enough battery power through connecting the phone to a powerbank.
So i have two issues
1 how to keep the proces of fetching the location alive
2 how do i keep the app alive to display the data and reads out loud the data.
The first issue could be solved with the backgroundlistner. But can i update my datafield on screen from the backgroundlistner.
In vb net , the background process are on a different thread. I have to send the data to the other thread. I sthat the same in android.
The second issue i can solve with keeping the screen on. Or starting the app again when the app is killed. The problem with that solution is that i need a workarround, because the first screen is a splash screen.
So, how does a route navigation app keeps the app and the locationmanager awake?
The only problem i noticed that the app doesnt update the screen
I change a button from start to stop and stop to start
By stop six labels are also changed
The stop doesnt change to start when i revalidate the button and the form
I dont know what is happeling When running the apps the labels arr changed every 30 seconds
I had the same problem with start but after i changed the initialisation of the locationmanager there was no prblen
Can it be because i set the location manager to null when clicking on the button
Any ideas?
catch(Throwable t) {
Log.e(t);
}
catch(Throwable t) {}