Posts

Showing posts with the label Android Choose the following questions:

Android Choose the following questions:

Android Choose the following questions: 1) If the service runs in the same process as the client, we should bind to the service using : a) Aidl b) Binder class c) Messenger d) Handler Answer : b) Binder Class 2) When a service is bound using the bindService, which of the following method is not called : a) onBind() b) onStart() c) onStartCommand() d) onCreate() Answer : c) onStartCommand() 3) Service runs in the main thread of hosting process : a) True b) False Answer : a) True 4) IntentService is stopped by calling stopSelf or stopService : a) True b) False Answer : a) False 5) Process which hosts a Service that's bound to the activity that the user is interacting with is : a) Visible Process b) Foreground Process c) Service Process d) Background Process Answer : b) Foreground Process 6) In an explicit intent, the sender specifies the type of receiver: a) True b) False Answer : b) False 7) When an activity doesn't exist in me...