1. Question: Consider the code snippet below:
    public class MyReceiver extends PhoneStateIntentReceiver
    {
        @Override
    
        public void onReceiveIntent(Context context, Intent intent)
        {
    
            if (intent.action == Intent.CALL_ACTION)
            {
    
    
            }
    
        }
    
    }
    Assuming that notifyPhoneCallState has been called to enable MyReceiver to receive notifications about the phone call states, in which of the following cases will the code in get executed?

    A
    When the device receives an incoming phone call.

    B
    When an outgoing phone call is initiated on the device.

    C
    When the user presses the CALL button on the device.

    D
    The code in will never get executed.

    Note: Not available
    1. Report
  2. Question: Which of the following are true about enabling/disabling menu items from an Activity class?

    A
    onCreateOptionsMenu can be used to enable/disable some menu items in an Android application.

    B
    onPrepareOptionsMenu can be used to enable/disable some menu items in an Android application.

    C
    onShowOptionsMenu can be used to enable/disable some menu items in an Android application.

    D
    The menu items in an Android application cannot be disabled.

    Note: Not available
    1. Report
  3. Question: Which of the following should be used to save the unsaved data and release resources being used by an Android application?

    A
    Activity.onStop()

    B
    Activity.onPause()

    C
    Activity.onDestroy()

    D
    Activity.onShutdown()

    E
    Activity.onFreeze()

    Note: Not available
    1. Report
  4. Question: Which of the following statements are correct with regards to publishing updates of apps on Google Play?

    A
    The android:versionCode attribute in the manifest file must be incremented and the APK file must be signed with the same private key.

    B
    The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the same private key.

    C
    The android:versionCode attribute in the manifest file must be incremented and the APK file must be signed with the new private key.

    D
    The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the new private key.

    Note: Not available
    1. Report
  5. Question: Which of the following would you have to include in your project to use the SimpleAdapter class?

    A
    import android.content;

    B
    import android.widget;

    C
    import android.database;

    D
    import android.database.sqlite;

    E
    import android.util;

    Note: Not available
    1. Report
  6. Question: Which of the following is/are appropriate for saving the state of an Android application?

    A
    Activity.onFreeze()

    B
    Activity.onPause()

    C
    Activity.onStop()

    D
    Activity.onDestroy()

    Note: Not available
    1. Report
  7. Question: Which of the following is the parent class for the main application class in an Android application that has a user interface?

    A
    MIDLet

    B
    AndroidApp

    C
    Activity

    D
    AppLet

    E
    Application

    Note: Not available
    1. Report
  8. Question: Which of the following can be used to bind data from an SQL database to a ListView in an Android application?

    A
    SimpleCursor

    B
    SimpleCursorAdapter

    C
    SimpleAdapter

    D
    SQLiteCursor

    E
    SQLLiteAdapter

    Note: Not available
    1. Report
  9. Question: Which of the following packages provide the classes required to manage the Bluetooth functionality on an Android device?

    A
    android.hardware

    B
    android.bluetooth

    C
    android.bluez

    D
    org.bluez

    Note: Not available
    1. Report
  10. Question: Which of the following can be accomplished by using the TelephoneNumberUtil class?

    A
    Save a phone number to the contacts in the phone device.

    B
    Retrieve a phone number from the contacts in the phone device.

    C
    Delete a phone number from the contacts in the phone device.

    D
    Format an international telephone number.

    E
    Setting and retrieving the call forwarding phone number on the phone device.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd