I am a complete newbie to Android development;
Basically, I am about to write an application, that will let the user to take photo, which (with a bunch of extra data) will be submitted to the remote webservice.
So I'm guessing I will need:
My concerns are:
Any ideas/suggestions will be appreciated.
a word of advice needed
Rutabaga .
Oh, wait. You're probably looking for something related to Android. OK, carry on.
A receiver object that will run the service at boot, and optionally check if the service needs to be restarted.
Yuck. Use AlarmManager
and have your service behave more like a cron job /Windows scheduled task.
Do I really need to monitor the service and care about anything bad that could kill it.
Not if you use AlarmManager
and have your service behave more like a cron job.
Will the battery last for at least 12 hours with a non-stop running service, making some networking/GPS actions in, let's say, 30-minute intervals. (G1/Dream)
If you use AlarmManager
and have your service behave more like a cron job, a 30-minute interval should be OK. Just make sure you shut down the GPS radio when you are done with it. Note that using the GPS radio from a cron job sort of task is a bit tricky, since it takes a while to get its first fix. You will also want to take a look at using PowerManager.WakeLock
to keep the device awake until your work is completed.
What else should I be careful about?
Mynd you, moose bites kan be pretti nasti.
Beyond that and what I wrote above, you should be in OK shape. Note that what you are diving into is not exactly "newbie" material.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.