Not able to start the service

view story

http://stackoverflow.com – Here is my WallePapeAuto.java code: package com.demo.wallpaper; import android.os.Bundle; import android.app.Activity; import android.content.Intent; public class WallePapeAuto extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent intent = new Intent(WallePapeAuto.this, BackgroundService.class); startService(intent); } } Here is my BackgroundService.java code: package com.demo.wallpaper; import java.util.Timer; import java.util.Time (HowTos)