1. Question: Which of the following is the best way to request user permission if an Android application receives location updates from both NETWORK_PROVIDER and GPS_PROVIDER?

    A
    Adding this line to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    B
    Adding these two lines to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    C
    Adding this line to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    D
    Adding this line to the Android manifest file: <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES" />

    Note: Not available
    1. Report
  2. Question: Which of the following are true about PhoneStateIntentReceiver.notifyPhoneCallState?

    A
    notifyPhoneCallState has to be called if your application wishes to receive a notification about an incoming phone call.

    B
    notifyPhoneCallState is a call back function that is called when the call state changes.

    C
    notifyPhoneCallState is called to initiate a call from the device.

    D
    notifyPhoneCallState is used to send notifications about call states.

    E
    notifyPhoneCallState gets called when the device receives an incoming phone call.

    Note: Not available
    1. Report
  3. Question: Which of the following statements are correct with regards to Content Providers? A) A content provider allows applications to access data. B) A content provider must be declared in the AndroidManifest.xml file.

    A
    Statement A is true, while Statement B is false.

    B
    Statement B is true, while Statement A is false.

    C
    Both statements are true.

    D
    Both statements are false.

    Note: Not available
    1. Report
  4. Question: Which of the following functions will return all available Content Providers?

    A
    List<ProviderInfo> returnList = new ArrayList<ProvderInfo>(); 
    for (PackageInfo pack : getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)) { ProviderInfo[] providers = pack.providers; 
     if (providers != null) { 
      returnList.addAll(Arrays.asList(providers));
     }
    } 
    return returnList;

    B
    return getContext().getPackageManager().queryContentProviders("com.google", Process.myUid(), 0);

    C
    List<ActivityInfo> returnList = new ArrayList<ActivityInfo>(); 
    for (PackageInfo pack : getPackageManager().getInstalledPackages(PackageManager.GET_RECEIVERS)) { ActivityInfo[] providers = pack.receivers; 
     if (providers != null) { 
      returnList.addAll(Arrays.asList(providers)); 
     } 
    } 
    return returnList;

    D
    None

    Note: Not available
    1. Report
  5. Question: What is the purpose of the ContentProvider class?

    A
    To play rich media content files.

    B
    To create and publish rich media files.

    C
    To share data between Android applications.

    D
    To access the global information about an application environment.

    E
    To maintain global application state.

    Note: Not available
    1. Report
  6. Question: Which of the following is the immediate base class for Activity and Service classes?

    A
    Application

    B
    ApplicationContext

    C
    Context

    D
    Component

    E
    Object

    Note: Not available
    1. Report
  7. Question: Which of the following are classes that can be used to handle the Bluetooth functionality on a device?

    A
    Adapte

    B
    Manage

    C
    Matche

    D
    BluetoothAdapte

    Note: Not available
    1. Report
  8. Question: How many expansion files can an APK file have? Select all correct options.

    A
    one

    B
    two

    C
    three

    D
    four

    Note: Not available
    1. Report
  9. Question: Which of the following are Android build modes?

    A
    Debug mode

    B
    Release mode

    C
    Production mode

    D
    Development mode

    Note: Not available
    1. Report
  10. Question: What is "Android-dx"?

    A
    A command line tool to create Android project files.

    B
    A framework to create unit tests for Android projects.

    C
    A resource editor to create user interface for Android applications.

    D
    A tool to generate Android byte code from .class files.

    E
    An emulator to execute and debug Android projects.

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