Building an activity to update a local database from a LAN based MySQL database, and I am running into some problems. Here are some basic questions I have:
I am running an activity, let's call it ActivityA. From it I send a request to my MySQL db, using Job.poststring, to provide about 6000 records, and the HttpUtils2 service (latest version using the library) starts running the request. While the request is running, ActivityA is paused by the system for some reason. When it resumes:
How can I find out if the request is still running in the service?
When the request completes, does the service shut itself down, or pause, and/or destroy itself?
How do I destroy the service when I have finished using it?
What happens if I try to run the request again while the original request is still running? Do I end up with the same request queued a second time?
Any insight appreciated ...
I am running an activity, let's call it ActivityA. From it I send a request to my MySQL db, using Job.poststring, to provide about 6000 records, and the HttpUtils2 service (latest version using the library) starts running the request. While the request is running, ActivityA is paused by the system for some reason. When it resumes:
How can I find out if the request is still running in the service?
When the request completes, does the service shut itself down, or pause, and/or destroy itself?
How do I destroy the service when I have finished using it?
What happens if I try to run the request again while the original request is still running? Do I end up with the same request queued a second time?
Any insight appreciated ...