• 2022-05-31 问题

    6 在系统中定义并获取通知服务的代码使哪一个()? A: NotificationManager manager = (NotificationManager) getService(NOTIFICATION_SERVICE); B: NotificationManager manager = (NotificationManager) getService(NOTIFICATION_SERVICE_Manager); C: NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE_Manager); D: NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

    6 在系统中定义并获取通知服务的代码使哪一个()? A: NotificationManager manager = (NotificationManager) getService(NOTIFICATION_SERVICE); B: NotificationManager manager = (NotificationManager) getService(NOTIFICATION_SERVICE_Manager); C: NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE_Manager); D: NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

  • 2022-06-03 问题

    在 Activity 中不能通过哪些方式获取Service 对象?() A: 直接实例化 B: 绑定 C: startService() D: getService()

    在 Activity 中不能通过哪些方式获取Service 对象?() A: 直接实例化 B: 绑定 C: startService() D: getService()

  • 1