Using GPS information in Activity and also in service

nemopeti

Member
Licensed User
Longtime User
Hello,

I wrotte an application, deals with GPS data.
The working method:
- set global GPS in main activity, and initialise it
- start the service
- in service modul start the gps, and set a call to self in later time

the service sends gps data to webservice, witch works well. But If the main activity on the screen I like to display the gps data in the activity too.

Can someone suggest me a correct solution for this?

Regards,
Peter

(sorry for my bad english :sign0013:)
 

nemopeti

Member
Licensed User
Longtime User
Ok, thank's for your quick answer.
And how can I detect thad the Main activity is on the screen? Becouse if it's not in the screen, than not nessesary to call it's function.
 
Upvote 0

hbruno

Member
Licensed User
Longtime User
Hello nemopeti,
can you post some code ?
i have the same problem with service-GPS-Activity.
I have read the link about CallSubDelayed, but not understand.
Thanks.
 
Upvote 0
Top