1. Question: Which of the following widgets helps to embed images in activities?

    A
    ImageView

    B
    ImageButton

    C
    Both of ImageView and ImageButton

    D
    None

    Note: Not available
    1. Report
  2. Question: What is the best way of opening camera as sub-activity?

    A
    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivity(takePictureIntent);

    B
    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
     if (takePictureIntent.resolveActivity(getPackageManager()) != null) {   startActivityForResult(takePictureIntent, 1); 
    }

    C
    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(takePictureIntent, 1);

    D
    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
     if (takePictureIntent.resolveActivity(getPackageManager()) != null) { startActivityForResult(takePictureIntent, -1); 
    }

    Note: Not available
    1. Report
  3. Question: What is the correct way to restrict app visibility on Google Play to devices that have a camera?

    A
    <uses-feature android:name="android.hardware.camera"/>

    B
    <uses-feature android:name="android.hardware.camera" android:required="true" />

    C
    <uses-feature android:name="android.hardware.camera.front" android:required="true" />

    D
    <uses-permission android:name="android.permission.CAMERA"/>

    Note: Not available
    1. Report
  4. Question: Which of the following sensors is only hardware-based?

    A
    linear acceleration sensor

    B
    gravity sensor

    C
    rotation vector sensor

    D
    accelerometer sensor

    Note: Not available
    1. Report
  5. Question: Which of the following formats is not supported in Android?

    A
    MP4

    B
    MPEG

    C
    AVI

    D
    MIDI

    Note: Not available
    1. Report
  6. Question: Which of the following permissions and configurations must be added in manifest file for implementing GCM Client? A) com.google.android.c2dm.permission.RECEIVE B) android.permission.INTERNET C) android.permission.GET_ACCOUNTS D) android.permission.WAKE_LOCK E) applicationPackage + ".permission.C2D_MESSAGE" F) A receiver for com.google.android.c2dm.intent.RECEIVE, with the category set as applicationPackage. The receiver should require the com.google.android.c2dm.SEND permission

    A
    A, B, C and D

    B
    C, D, E and F

    C
    A, B, E and F

    D
    All of these

    Note: Not available
    1. Report
  7. Question: Which of the following permissons is needed to perform the network operations through internet? a) INTERNET b) ACCESS_NETWORK_STATE

    A
    a

    B
    b

    C
    both

    D
    noth

    Note: Not available
    1. Report
  8. Question: Consider the following snippet of code:
    @Override
    protected void onStop
    {
    Super.onStop();
    SharedPreferences setting = getSharedPreferences("MyPrefs", 0);
    SharedPreferences.Editor editor = settings.edit();
    editor.putBoolean("MyBool", true);
    
    <some more code here>
    }
    Which of the following should be used <some more code here>?

    A
    editor.save(); editor.close();

    B
    editor.save(); editor.finish();

    C
    editor.commit();

    D
    editor.save();

    E
    editor.close();

    F
    editor.finish();

    Note: Not available
    1. Report
  9. Question: What does the following statement define? It provides query(), insert(), update(), and delete() methods for accessing data from a content provider and invokes identically-named methods on an instance of a concrete content provider.

    A
    CursorLoader

    B
    ContentResolver

    C
    ContentProvider

    D
    Loader

    Note: Not available
    1. Report
  10. Question: What is the advantage of using AsyncTaskLoader instead of AsyncTask?

    A
    a bit easier to work with

    B
    the possibility easily update progress bar

    C
    no comparison, because it implements completely different functionality

    D
    less work with the configuration of application

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