Hi Mark I need some clarifications on services. My service starts at BOOT Time, establishes connection and receives data from server. If i want to push data to server manually from activity, i need to call a function in service class. So, 1)How can i call a function in services from activity? 2)How can i display toast in service class? My code looks like this: Toast.makeText(getApplicationContext(), "hello", Toast.LENGTH_LONG).show(); --(NOT WORKING inside service)
Thanks Veradis On Dec 14, 2:17 pm, Mark Murphy <[email protected]> wrote: > veradis wrote: > > The app SERVICE should be loaded along with android OS. So, can it be > > done. > > Use a BOOT_COMPLETED broadcast Intent listener to start the service. > > > I am not sure whether it is good practice or not > > My thoughts: > > http://www.androidguys.com/2009/12/07/code-pollution-boot-time-services/ > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Training in Germany, 18-22 January 2010:http://bignerdranch.com -- 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

