I've got a service class that runs in the background. I'd like to make calls from my main activity to the service object.
In the Activity.onCreate() method - if the service is not running - i'd like to start it. The way i did it - was in the Service.onCreate() method - i set a static variable to self (i.e. this). In the Activity.onCreate() - i check this variable and if it's null - start the service. Unfortunately it's not working. I killed the app but not the service - verified in the phone settings apps page. Everytime i start the app - this variable still seems to be null. yes the variable is static. It's almost as if the system is killing the service and doing a clean start of the app. Any help? the Service.onStartCommand() mehtod returns START_STICKY. -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

