android 开启Service的方式

public void click1(View v){
        Intent intent=new Intent(this,DemoService.class);
        startService(intent);
    }
    public void click2(View v){
        Intent intent=new Intent(this,DemoService.class);
        stopService(intent);
    }

开启和关闭都需要 Intent 意图,但接收的参数为什么不能直接写成如下:
startService(DemoService.class);
startService(DemoService.java);

这样应该更方便,为什么谷歌没有这样做?

https://blog.csdn.net/imxiangzi/article/details/76039978