Activity名为MainActivity Service名为:MyService。startService方法启动服务时,所需Intent对象作为参数。该对象可以通过如下那个方式构建
A. Intent intent = new Intent(MainActivity.this, MyService)
B. Intent intent = new Intent(MainActivity.this, MyService.class)
C. Intent intent = new Intent(MainActivity.class, MyService)
D. Intent intent = new Intent(MainActivity.this, MyService.this)