逻辑按键按下为“1”,且指示灯亮,否则为“0”,指示灯熄。
A. 对
B. 错
Service是Android的四大组件之一,它需要在Manifest中注册,其注册标签,是什么,应该放在那个标签内部。
A. 是 service 放在 activity
B. 是 service 放在 application
C. 是 Service放在 Application
D. 是Service 放在manifest内部
通过继承Service类来创建Service后必须实现的方法是
A. onCreate
B. onStartCommand
C. onBind
D. onDestroy
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)