public class ShortCurActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Button button = (Button)findViewById(R.id.b_start);
if(button != null){
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View paramView) {
Intent i = new Intent(ShortCurActivity.this, ServiceWallpaper.class);
startService(i);
}
});
}
}
I just want to know if I can start a live wallpaper Service from Activity. I have tried to use Intent but it does not work. Some Designers want me to make a shortcut for Live wallpaper so the user can change their live wallpaper whenever they want :(