Android Question Timer Service is not responding

nitinb4a

Member
Licensed User
Longtime User
Hi Erel,

I am using timer as service in service module for recording the geo (lon. lat etc) details on sqlite database at every 3 mins interval. and after 15 minutes it it then saved on remote sql database. when it it trying transfer sqlite records to remote database it gives an error message "Service is not responding Would you like to close it ?" ask for two options "Wait" and Ok . Sometimes the service stuck up. how to rectify this problem.

I want to run timer as services for recording /saving geo details (lon. lat. etc.) in background during 9 am to 7 pm daily and this services should start automatically.

Is it possible to run only timer service module in background without activity module and without UI ?

Pls. suggest the similar links for timer services.
 

nitinb4a

Member
Licensed User
Longtime User
Hi ,

I checked the log and noticed that the service crash when it connects remote database and when it select "wait" option it completed the transaction. Similarly the other tasks running on smart phone need to kill manually for smooth operations the shorter the phone memory may crash the service.

I will try to run only timer service module without activity and UI.. Is there any similar sample b4a program is available on this forum or documents?

I will work for StartServiceAt and running a service in foreground

Thanks for the same.

BR

Nitin
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
Upvote 0

nitinb4a

Member
Licensed User
Longtime User
I am using SQL library and insert or update statement to sending records on remote sql2005 database.
 
Upvote 0

nitinb4a

Member
Licensed User
Longtime User
Hi Erel,

Pls. suggest me the matching tutorials for alternative of this MSSql1.0 library as well as web service.
 
Upvote 0

nitinb4a

Member
Licensed User
Longtime User
Hello Erel,

As I tested the timer as services in my location tracker apps. This message [ "Service is not responding Would you like to close it ?" ask for two options "Wait" and Ok ] is displaying when the (2G) data connection or Cell phone tower connectivity not found its works better on Wifi . with data connectivity It is stuck up at initial stage at requesting location before starting the MSSQL transaction.
I have used the below syntax also.

StartServiceAt and Service.StartForeground(1,nNotify) also.

I want to show my b4a program for your reference. Pls. have a look and Advise me if you find any thing wrong in syntax or programming.

I need to run only timer service to record location without activity module and that gives notification after specific time interval also saves the battery and phone resources like processor capacity & memory space.

Regards
Nitin
 
Upvote 0

nitinb4a

Member
Licensed User
Longtime User
Try to remove the MSSQL library code and see if it still happens.
Hi Erel,

I did the same removed the MSsql lib and its code but same error is showing Service not responding.

Pls. have look on attached b4a code.
 
Upvote 0

nitinb4a

Member
Licensed User
Longtime User
Hi Erel,

I find the Geocoder library author name "Martin Pearman" in geocoder.xml file and i tried to ask my question to author but while starting new conversation a user name Martin Pearman is not found .pls tell me how to contact with this library author.

As well as the LocationManager library's author is "XverhelstX" and I want to get more info about this library and the reason of why Service not responding when I use this library in my b4a service module.

How to contact these authors ?
 
Upvote 0
Top