Brilliant, thank you! So I'm clear, is the best sequence as follows: 1. call a (local) Service 2. from within the Service, call an ASyncTask to initiate a new thread 3. from within the new thread, call the Notifications and file uploading code
Also, I need to pass in a filename to the file uploading code - that wouldn't change anything, I assume it's possible to pass a filename to a Service class as an argument? Many thanks for your help. Anna On Mar 1, 4:03 pm, Mark Murphy <[email protected]> wrote: > Anna PS wrote: > > should it be a LocalService or a > > RemoteService, as per the API examples? > > A local service should be fine. > > > And do I need to call a new > > thread once I start the service, or do all services by definition run > > in a different thread? > > Services by definition run on the main application thread, so use an > AsyncTask or something to get your upload logic off that thread. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android 2.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

