I want to start only to start a service when my application start. Here is my code:
My Service class:
public class MyService extends Service {
@Over
You going to need an main activity to call this service within onCreate
if you want the service to start as soon as you start your application. In your main activity include this code in your onCreate.
startService(new Intent(Main_Activity.this,MyServiceReceiver.class));
This is just to call your service when you start up your application.