Does Google provide any Android tutorials that teach how to implement the Service?
I apologize in advance for the "newbies" of this question.
Here's my predicament: I'm completely new to Android and developing in general. I am using android SDK with eclipse Galileo. I have followed several tutorials to create different layouts. I even recently learned how to use radio buttons and check which one was selected. Now I need to create a service that downloads and updates the XML file in the application. I tried to find a simple tutorial for services on google developer site but so bad so far. If they exist, can someone point me in the right direction?
On the other hand, I was told that google tutorials are a little out of date. It's true? If so, are there any other tutorials that would allow manual (and perhaps over-explaining) how to use the service for a true beginner for free (like google)?
Any suggestions would be appreciated.
a source to share
There are several open source projects that you can use as examples
http://code.google.com/p/android-sky/source/browse/#svn/trunk/Sky
http://code.google.com/p/shelves/source/browse
http://code.google.com/p/apps-for-android/
and books on common sense and examples for this book:
a source to share
Do you want to download / upload locally to your device or via a network connection?
Local File Access Should Be Covered Data Warehouse Tutorials The networking part of the developer guide is sparse (just lists 2 main packages to use on the web), but a quick google search finds what looks like a good tutorial with source code: http: / /developerlife.com/tutorials/?p=288
a source to share
I would use Java NIO for this.
A very good example (but maybe a little tricky at first) in this test app. See the following methods: download () and especially fastChannelCopy ().
You can see the complete DownloadFile class of the same method here .
About the service itself, others have pointed out how well.
a source to share