Sorry if this is a dumb question but how do initiate an android service? I cant figure out the error code on public class scilentservice extends IntentService {
(see code below). I think it might have something to do with the intent but i'm not positive. What I want is for my app to start the service which would then auto science the phone at certain times.
Here is my code
/**
* Created by Abe on 3/29/2015.
*/
import android.app.IntentService;
import android.content.Intent;
public class scilentservice extends IntentService {
@Override
protected void onHandleIntent(Intent workIntent) {
// Gets data from the incoming Intent
String dataString = workIntent.getDataString();
...
// Do work here, based on the contents of dataString
...
}
}
`
Thanks in advance for your help.