Now i've made a nice UI wit a few buttons and i want one of those buttons to start up a service. So i put this code into the onClick method:
Using java Syntax Highlighting
- Intent intent = new Intent(<Nameofthisclass>.this, <nameofserviceclass>.class);
- intent.setLaunchFlags(Intent.NEW_TASK_LAUNCH);
- startService(intent, null);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
In the class that's being called i put a showAlert to see if it's actually being called, but it doesn't. Am i doing anything wrong, maybe i need to define the service in the AndroidManifest.xml
Tnx in regard



.