I would like to understand hot to use services
1. I create new service module
2. I will that service will communicate via udp so I put udp event
3. how to update main activity ?
for example i udp service become some data I have to update some chceckbox in main activity - how to do that ? I don't understand
My goal:
start my application (one or two activities and one service) Service should listen and if become some data it should be updated (called) desired activites
(second question) How it's with variables in process globals? I will for example have
dim var1 as int
that I can use in my main activity and in my service .... how to do that? Should I declare it twice in "process globals" in main activity and service ?
1. I create new service module
2. I will that service will communicate via udp so I put udp event
3. how to update main activity ?
for example i udp service become some data I have to update some chceckbox in main activity - how to do that ? I don't understand
My goal:
start my application (one or two activities and one service) Service should listen and if become some data it should be updated (called) desired activites
(second question) How it's with variables in process globals? I will for example have
dim var1 as int
that I can use in my main activity and in my service .... how to do that? Should I declare it twice in "process globals" in main activity and service ?
Last edited: