Dear Sir,
I were looking for this question and I found nothing.I beg your pardon if exists an answer to my question.
I develop a application based on your GPS example. It has a Main and a GPS service (starter) As you know the service read GPS location and trigger Main subs.
IN the Main I have a SUB named SAVEGPS .It saves to SQL database the GPS labels (lblLat and lblLon) values.
On service I added a timer and each 30 seconds it tigger the MAIN SUB SAVEGPS
All works fine ... while the application its on front. When I hide application or when the smartphone "sleeps" after a while (screen is off) the service stops or the Main SUB SAVEGPS does not work because its on the Main module ( I am not sure what)
What I must do for it to work on background ? Maybe I must Place all SUBS en service module? (Starter)
Sorry for my English. I am not sure I explained well
Thanks in advance for your time and help.
I were looking for this question and I found nothing.I beg your pardon if exists an answer to my question.
I develop a application based on your GPS example. It has a Main and a GPS service (starter) As you know the service read GPS location and trigger Main subs.
IN the Main I have a SUB named SAVEGPS .It saves to SQL database the GPS labels (lblLat and lblLon) values.
On service I added a timer and each 30 seconds it tigger the MAIN SUB SAVEGPS
All works fine ... while the application its on front. When I hide application or when the smartphone "sleeps" after a while (screen is off) the service stops or the Main SUB SAVEGPS does not work because its on the Main module ( I am not sure what)
What I must do for it to work on background ? Maybe I must Place all SUBS en service module? (Starter)
Sorry for my English. I am not sure I explained well
Thanks in advance for your time and help.