Android Programming Test
Consider the code snippet below: public class MyReceiver extends PhoneStateIntentReceiver { @Override public void onReceiveIntent(Context context, Intent intent) { if (...
Consider the code snippet below: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); <Some code here> mp.start(); Which of the following should be placed at <Some code here>?
Consider the code snippet below: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); <Some code here> mp.start(); Which of the following should be placed at <Some code here>?
Consider the following snippet of code: @Override protected void onStop { Super.onStop(); SharedPreferences setting = getSharedPreferences("MyPrefs", 0); SharedPreferences.Editor editor = settings...
Consider the following snippet of code: <font size =2> @Override protected void onStop { Super.onStop(); SharedPreferences setting = getSharedPreferences("MyPrefs", 0); SharedPreferences.Editor edi...
Consider the XML fragment below, which is taken from one of the files in an Android project: <MyElement xmlns:"http://schemas.androd.com/apk/res/android" android:layout_width = "fill_pare...
Consider the XML fragment below, which is taken from one of the files in an Android project: <MyElement xmlns:"http://schemas.androd.com/apk/res/android" android:layout_width = "fill_parent...
Fill in the blank: Once an app is published, the ________ cannot be changed. It should be unique for each APK.
How many expansion files can an APK file have? Select all correct options.
Select the two function calls that can be used to start a Service from your Android application?
Suppose MyView is a class derived from View and mView is a variable of type MyView. Which of the following should be used to display mView when the Android application is started?
Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another screen, Screen2 has to be opened from Screen1, then which of the following are true?
Using a content provider, which of the following operations are able to perform? a) create b) read c) update d) delete
What does the following code do? public boolean isOnline() { ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = con...
What does the following code do? SensorManager mgr = (SensorManager) getSystemService(SENSOR_SERVICE); List<Sensor> sensors = mgr.getSensorList(Sensor.TYPE_ALL); for (Sensor sensor : sensors) { ...
What does the following code do? try { String token = GoogleAuthUtil.getToken(this, email, "https://www.googleapis.com/auth/devstorage.read_only"); System.out.println(token); } catch (IOEx...
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 insta...
What is "Android-activityCreator"?
What is "Android-dx"?
What is "Android-Positron"?
What is Android?
What is correct regarding GCM - Google Cloud Messaging service?
What is the advantage of using AsyncTaskLoader instead of AsyncTask?
What is the best way of opening camera as sub-activity?
What is the correct way to fix if checking the status of the GPS_PROVIDER throws SecurityException?
What is the correct way to restrict app visibility on Google Play to devices that have a camera?
What is the interface Spannable used for?
What is the ListActivity class used for?
What is the maximum supported file size for a single APK file (excluding expansion packages) in the Google Play Store?
What is the maximum supported size for a single expansion file in the Google Play Store?
What is the purpose of the ContentProvider class?
Which of the following 4 classes does not relate to others? ApplicationInfo, SyncInfo, ActivityInfo, PackageInfo
Which of the following are Android build modes?
Which of the following are classes that can be used to handle the Bluetooth functionality on a device?
Which of the following are true about enabling/disabling menu items from an Activity class?
Which of the following are true about Intent.CALL_ACTION and Intent.DIAL_ACTION?
Which of the following are true about PhoneStateIntentReceiver.notifyPhoneCallState?
Which of the following are true?
Which of the following are UI elements that you can use in a window in an Android application?
Which of the following are valid features that you can request using requestWindowFeature?
Which of the following are valid ways to deploy an Android application to a device?
Which of the following attributes in the manifest file defines version information of an application for the Google Play Store (as opposed to defining version information for display to users)?
Which of the following can be accomplished by using the TelephoneNumberUtil class?
Which of the following can be used to bind data from an SQL database to a ListView in an Android application?
Which of the following can be used to handle commands from menu items in an Android application?
Which of the following can be used to navigate between screens of different Android applications?
Which of the following can you use to add items to the screen menu?
Which of the following can you use to display a progress bar in an Android application?
Which of the following can you use to display an HTML web page in an Android application?
Which of the following classes is not used in working with database?
Which of the following fields of the Message class should be used to store custom message codes about the Message?
Which of the following formats is not supported in Android?
Which of the following functions will return all available Content Providers?
Which of the following Integrated Development Environments can be used for developing software applications for the Android platform?
Which of the following is correct to use for data transfer regularly and efficiently, but not instantaneously?
Which of the following is not a life-cycle methods of an Activity that can be implemented to perform various operations during the lifetime of an Activity?
Which of the following is not Content Provider?
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?
Which of the following is the immediate base class for Activity and Service classes?
Which of the following is the parent class for the main application class in an Android application that has a user interface?
Which of the following is/are appropriate for saving the state of an Android application?
Which of the following packages provide the classes required to manage the Bluetooth functionality on an Android device?
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) an...
Which of the following permissons is needed to perform the network operations through internet? a) INTERNET b) ACCESS_NETWORK_STATE
Which of the following procedures will get the package name of an APK file?
Which of the following programming languages can be used to develop software applications for the Android platform?
Which of the following protocols are provided by Google for GCM Connection Servers? A) HTTP B) XMPP C) SOAP D) RMI
Which of the following sensors is only hardware-based?
Which of the following should be used to save the unsaved data and release resources being used by an Android application?
Which of the following statement is correct regarding StrictMode?
Which of the following statements are correct with regards to calling place GoogleAuthUtil.getToken()? A) call getToken() on the UI thread B) call getToken() on AsyncTask
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 AndroidMani...
Which of the following statements are correct with regards to publishing updates of apps on Google Play?
Which of the following statements are correct with regards to running of the Sync Adapter? A) Running sync adapter in response to a user request. B) Running sync adapter periodically by setting a ...
Which of the following statements are correct with regards to signing applications? a) All applications must be signed. b) No certificate authority is needed. c) When releasing application special...
Which of the following tools can be used to reduce apk package size?
Which of the following widgets helps to embed images in activities?
Which of the following would you have to include in your project to use the APIs and classes required to access the camera on the mobile device?
Which of the following would you have to include in your project to use the SimpleAdapter class?