There are two statements: Statement A: You should use AsyncTask to do a long operation. Statement B: You shoud use Service to do a shorter operation. Which of them are correct?
A. Statement A is True, and Statement B is True
B. Statement A is True, and Statement B is False
C. Statement A is False, and Statement B is True
D. Statement A is False, and Statement B is False
In auto-generated code of an Android app, what is R class?
A. Contains code for authentication and authorization the app
B. Contains IDs of the project resources
C. It is the main controller of the app
D. None of above
Which statement is NOT correct about Google Map Overlay?
A. To enable compass, you call .enableCompass() function of MyLocationOverlay instance
B. You need to extend ItemizedOverlay class to customize marker
C. MyLocationOverlay class can be used to create overlay that shows your location
D. Overlay is added to map automatically after instancing it
A. The NotificationManager class is used to display notifications on the device's status bar and disappears after a few seconds
B. The NotificationManager class is used to display alerts to the user and disappears when user click on OK button
C. The NotificationManager class is used to display notifications on the device's status bar
D. The NotificationManager class is used to display alerts to the user and disappears after a few seconds
Which is Not a rule for Android single thread model?
A. Do not block the UI thread
B. Do not access the Android UI toolkit from outside the UI thread
C. Do manipulation of the UI from both UI thread and Worker thread to increase performance
What is NOT correct about Ext.Viewport in Sencha Touch?
A. Need declare in app.js
B. Extend from Ext.Container
C. Can add items to it at any time, from anywhere in code
D. Can activate item by Viewport.setActiveltem();
A. All browsers support for all new elements of HTML5
B. HTML5 helps to reduce the need of browser plugin
C. HTML5 should be device independent
D. None of above
Which one of four main components of an Android application that is corresponding with the following description: " They handle background processing associated with an application "
A. Activities
B. Services
C. Content Providers
D. Broadcast Receivers
A. The method is addProximityAlert().
B. The method is addProximityNotify().
C. The method is addProximityLocation().
D. The method is addProximitylnformation().
Name the permissions you need to declare in your AndroidManifest.xml file for sending and receiving SMS message
A. The two permissions are SEND_PERMISSION and RECEIVE_PERMISSION
B. The two permissions are SEND_MESSAGE and RECEIVE_MESSAGE
C. The two permissions are SEND_SMS and RECEIVE_SMS
D. The two permissions are SEND and RECEIVE
Android: Which statements are correct about Broadcast receivers?
A. Broadcast receivers are Android's implementation of the Publish/Subscribe messaging pattern.
B. Applications (known as publishers) can generate broadcasts to simply send events not knowing who, if anyone
C. Receivers (known as subscribers) that want the information subscribe to specific messages via filters. If the me
D. All of above
E. None of above
What is not true about the Android application lifecycle?
A. Each application runs in its own process.
B. Processes are started and stopped as needed to run apps components.
C. Processes may be killed to reclaim needed resources
D. Each activity of an application runs in its own process
Why is the AbsoluteLayout not recommended for use?
A. using the AbsoluteLayout makes it facility for your application to have a consistent look and feel across devices
B. using the AbsoluteLayout makes it difficult for your application to have a consistent look and feel across devices
C. using the AbsoluteLayout makes it easy for your application to have a consistent look and feel across devices
D. using the AbsoluteLayout makes it quick for your application to have a consistent look and feel across devices
A. The Toast class is used to display notifications on the device's status bar
B. The Toast class is used to display notifications on the device's status bar and disappears after a few seconds
C. The Toast class is used to display alerts to the user and disappears when user click on OK button
D. The Toast class is used to display alerts to the user and disappears after a few seconds
Which statement is NOT correct about Intents Action?
A. The Intent class defines a number of pre-defined action constants
B. We can also define your own action strings for activating the components in your application
C. It is a string naming the action to be performed
D. All of above
E. None of above
Which statements are NOT correct about Intent Filters?
A. Filters informs the system which implicit intents a component can handle
B. If a component does not have any intent filters, it can receive only explicit intents
C. A component with filters can receive both explicit and implicit intents
D. All of above
E. None of above
Data type integrity is not maintained in SQLite, you can put a value of a certain data type in a column of another datatype (put string in an integer and vice versa)?
Name the method that enables you to obtain the path of the external storage of an Android device.
A. The method name is getExternalStorageDirectory()
B. The method name is getPathExternalStorageDirectory()
C. The method name is getExternalStorageFile()
D. The method name is getExternalStoragePath()
Android: How to calling Sub-Activities for result data?
A. Use the startActivityForResult() method to start Activity, called a Sub-Activity.
B. In the Sub-Activity class, call setResult(), finish() methods to return the result to the Parent Activity
C. In the parent activity, the returned data is done by protected void onActivityResult
D. All of above
E. None of above
A. Geocoding is the act of converting an address into its coordinates (latitude and longitude).
B. Geocoding is the act of compress an address.
C. Geocoding converts a pair of location coordinates into an address
D. Geocoding is the act of encoding an address.
What will happen if you have two or more activities with the same intent filter action name?
A. The Android OS will choose second activity.
B. The Android OS will display a dialog from which users can choose which activity they want to use.
C. The Android OS will display an error
D. The Android OS will choose first activity
There are two statements: Statement A: Using Shared Preferences, you can store private primitive data only. Statement B: Using External Storage option, you can store public data on the shared external storage. Which of them are correct?
A. Statement A is False, and Statement B is False
B. Statement A is True, and Statement B is True
C. Statement A is True, and Statement B is False
D. Statement A is False, and Statement B is True
Given the following JSON content:
{"parent":[
{"child":"Peter"}
]}
Assume that content of "parent" is stored in reader variable, and inside it has a child object named "child". Which of the following statement we need to you to get this child object?
A. JSONObject childObj = reader.getJSONObject("child");
B. JSONObject childObj = parent.getJSONObject("child");
C. JSONObject childObj = (JSONObject) parent.getJSON("child");
D. JSONObiect childObi = (JSONObiect) reader.getJSON("child"):
Intent mylntent = new Intent(this, ActivityTwo.class); myIntent.putExtra("Valuel", "This value one for ActivityTwo "); mylntent.putExtra("Value2", "This value two ActivityTwo");
Which of following is true?
A. mylntent is class Intent
B. mylntent is implicit Intent
C. mylntent is system Intent
D. mylntent is explicit Intent
How do you register a content provider in your AndroidManifest.xml file?
A. <provider android:name="ProductsProvider" android:package="fu.android.provider.Products" I>
B. <provider android:name="ProductsProvider" android:authorities="fu.android.provider.Products" />
C. <provider android:name="ProductsProvider" android:class="fu.android.provider.Products" />
D. <provider android:name="ProductsProvider" android:path="fu.android.provider.Products" />
Android: Which statements are correct about Broadcast receivers?
A. Broadcast receivers are Android's implementation of Publish/Subcribe messaging pattern.
B. Applications (known as publishers) can generate broadcast to simply send events not knowing who, if anyone, will get them.
C. Receivers (known as subcribers) that want the information subcribe to specific messages via filter. If the message match a filter, the subcriber is actived(if it's not already running) and notified of the message
D. All of above
E. None of above
A. Base class with code to manage the boring necessities of any activity that display a MapView
B. A View which display a Map (with data obtained from the Google Maps Service)
C. A class to manage paining and zooming of a map
D. An Overlay for drawing the user's current location (and accuracy) on the map, and/or a compass-rose inset.
How do you specify the minimum version of Android required by your application?
A. You specify the minimum Android version required using the minNdkVersion attribute in the AndroidManifest.xml file
B. You specify the minimum Android version required using the minNumberVersion attribute in the AndroidManifest.xml file
C. You specify the minimum Android version required using the minSdkVersion attribute in the AndroidManifest.xml file
D. You specify the minimum Android version required using the minVersion attribute in the AndroidManifest.xml file
Name the three events you can override to save an activity's state.
A. onStop(), onSaveInstanceState(), and onRetainNonConfigurationInstance()
B. onDestroy(), onStop(), onSaveInstanceState(), and onRetainNonConfigurationInstance()
C. onResume(), onStop(), onSaveInstanceState(), and onRetainNonConfigurationInstance()
D. onPause(), onStop(), onSaveInstanceState(), and onRetainNonConfigurationInstance()
A. A string containing additional information about the kind of component (activity, service, or broadcast receiver) that should handle the intent.
B. Android provide a set of predefined categories
C. You can define your own categories
D. All of above
E. None of above
A. setContentView(new XmlLayout())
B. loadContentView(new LinearLayout())
C. setContentView(R.layout.some_layout)
D. loadContentView(R.layout.some_layout)
Android: Which Layout adds each child View in a straight line, either vertically or horizontally and allows you to specify a "weight" for each child View that controls the relative size of each within the available space?
A. LinearLayout
B. RelativeLayout
C. TableLayout
D. AbsoluteLayout