For sending sms through Intent which code is correct?
A) Intent intent = new Intent();
intent.putExtra("sms_body", "Welcome at CareerRide.com");
startActivity(intent);
B)...
For accessing the subscriber identity module (SIM) detail which class you will use?
For accessing the subscriber identity module (SIM) detail which class you will use?
A) SimManager
B) TelephonyManager
C) MobileManager
D) All of...
To initiate a call using the Intent which code you will write?
To initiate a call using the Intent which code you will write?
A) Intent intent = new Intent (Intent.ACTION_CALL)”);
startActivity(intent);
B) Intent...
Which permission you need to declare in your AndroidManifest.xml file for initiating a call using the system in-call Activity?
Which permission you need to declare in your AndroidManifest.xml file for initiating a call using the system in-call Activity?
A) CALL_NUMBER uses-permission
B)...
Which is/are related to fragment class?
Which is/are related to fragment class?
A) dialogFragment
B) listFragment
C) preferenceFragment
D) All of the above.
Answer:...
Which is Parent class of Activity?
Which is Parent class of Activity?
A) ActivityGroup
B) Context
C) BaseActivity
D) ContextThemeWrapper
Answer:...
What types of menus is/are supported by Android?
What types of menus is/are supported by Android?
A) Option menu and Context menu
B) Only Option menu
C) Only Context menu
D) None of the above.
Answer:...
What is the purpose of the ImageSwitcher?
What is the purpose of the ImageSwitcher?
A) The ImageSwitcher enables images to be displayed with animation.
B) The ImageSwitcher displayed images...
How to get feedback on message sent?
How to get feedback on message sent?
A) Use two Intent objects in the sendTextMessage() method.
B) Use two PendingIntent objects in the sendTextMessage()...
What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556
What code you will write to send the SMS to another AVD? Suppose that the AVD no is 5556
A) SmsManager sms=new SmsManager();
sms.sendTextMessage("5556",...
Which class is used to send SMS programmatically?
Which class is used to send SMS programmatically?
A) SmsSender
B) SmsManager
C) SMS
D) None of the above.
Answer:...
Which permission you need to declare in your AndroidManifest.xml file for sending SMS.
Which permission you need to declare in your AndroidManifest.xml file for sending SMS.
A) <uses-permission android:name="android.permission.SEND_SMS"/>
B)...
What is Android Interface Definition Language (AIDL)?
What is Android Interface Definition Language (AIDL)?
A) AIDL does not the Java programming language.
B) It does not define the programming interface.
C)...
For Creating your own content provider which class you will inherit?
For Creating your own content provider which class you will inherit?
A) Content
B) ContentProvider
C) Object.
D) None of the above.
Answer:...
Choose the correct option according to the given option.
Choose the correct option according to the given option.
Statement 1: A content provider behaves very much like a database — you can query it,
edit...
What are the predefined query string constants available in Android?
What are the predefined query string constants available in Android?
A) ContactsContract.Contacts.CONTENT_URI
B) Browser.SEARCHES_URI
C) MediaStore.Images.Media.INTERNAL_CONTENT_URI
D)...
SimpleCursorAdapter object maps a cursor to which view, defined in your XML file?
SimpleCursorAdapter object maps a cursor to which view, defined in your XML file?
A) TextViews
B) ImageViews
C) Both A and B option are correct.
D)...
For reading the contacts from the Contacts, Which permission you will set in AndroidManifest.xml file if you are using ContentProvider.
For reading the contacts from the Contacts, Which permission you will set in AndroidManifest.xml file if you are using ContentProvider.
A) FIND_CONTACTS
B)...
To query a content provider, you specify the query string in the form of a URI. The format of the query URI is as follows:
To query a content provider, you specify the query string in the form of a URI. The format of the query URI is as follows:
<standard_prefix>://<authority>/<data_path>/<id>
What...
To share data across packages in Android which object you will prefer?
To share data across packages in Android which object you will prefer?
A) SharedPreference
B) ContentProvider
C) DataProvider
D) None of the above.
Answer:...
Which one is not a nickname of android OS?
Which one is not a nickname of android OS?
A) Honeycomb
B) CupCake
C) Muffin
D) None of the above.
Answer: C&nbs...
What runs in the background and does not have any user interface?
What runs in the background and does not have any user interface?
A) PendingIntent
B) Service
C) Intent
D) None of the anove.
Answer:...
Android provides the following functionality.
Android provides the following functionality.
A) Security
B) Networking
C) Portability
D) All of the above.
Answer:...
What is the full form of AVD in Android?
What is the full form of AVD in Android?
A) Android Virtual Device
B) Android Virtual Display
C) Actual Virtual Display
D) All of the above.
Answer:...
Which of the following statements is correct?
Which of the following statements is correct?
A) Permissions are not specified in AndroidManifest.xml.
B) The AndroidManifest.xml is optional.
C)...
If you want share the data from one application to other applications, you will which object you will use?
If you want share the data from one application to other applications, you will which object you will use?
A) SQLiteDatabases
B) InternalStorage
C)...
To check whether the media(external storage) is available, which method of Environment class you will use?
To check whether the media(external storage) is available, which method of Environment class you will use?
A) getExternalStorageState()
B) getExternalStorage()
C)...
In order to use internal storage to write some data in the file, which method will be used?This method returns FileOutputStream.
In order to use internal storage to write some data in the file, which method will be used?This method returns FileOutputStream.
A) openFileInput()
B)...
To write files on the external storage, which permission you will write in AndroidManifest.xml file
To write files on the external storage, which permission you will write in AndroidManifest.xml file
A) WRITE_STORAGE
B) WRITE_EXTERNAL_DATA
C) WRITE_EXTERNAL_STORAGE
D)...
You want to read website name by using SharedPreferences. Choose the correct option for doing this.
You want to read website name by using SharedPreferences. Choose the correct option for doing this.
A) SharedPreferences obj=getSharedPreferences("MySharedFile...
You want to store website name by using SharedPreferences. Choose the correct option for doing this.
You want to store website name by using SharedPreferences. Choose the correct option for doing this.
A) SharedPreferences obj=getSharedPreferences("MySharedFile",...
Which objects stores only primitive data type?
Which objects stores only primitive data type?
A) SharedPreferences
B) SQLiteDatabase
C) ContentProvider
D) None of the above.
Answer:...
SharedPreferences stores the data in which format?
SharedPreferences stores the data in which format?
A) TXT
B) XML
C) DOC
D) None of the above.
Answer:...
Which objects stores the data only in key-value pair?
Which objects stores the data only in key-value pair?
A) SharedPreferences
B) SQLiteDatabase
C) ContentProvider
D) None of the above.
Answer:...
What is/are storage option available in android?
What is/are storage option available in android?
A) SharedPreferences
B) SQLiteDatabase
C) ContentProvider
D) All of the above.
Answer:...
For creating Fragments the java class needs to extend which base class?
For creating Fragments the java class needs to extend which base class?
A) MainActivity
B) MiniActivity
C) Fragment
D) None of the above.
Answer:...
How will you get the data in secondActivity? Refer question 10.
How will you get the data in secondActivity? Refer question 10.
A) Intent intent=new Intent;
String str= intent.getStringExtra("name");
Toast.makeText(this,...
Suppose that there are two activities in an application named FirstActivity and SecondActivity. You want to send website name from ActivityOne to ActivityTwo. What code you will write? Suppose that website name is “CareerRide.com”
Suppose that there are two activities in an application named FirstActivity and SecondActivity. You want to send website name from ActivityOne to ActivityTwo....
How will you reference a textbox control in java file, that is available in XML file and the ID is txtName.
How will you reference a textbox control in java file, that is available in XML file and the ID is txtName.
A) EditText txtEmpName;
txtEmpName=findViewById(R.id.txtName);
B)...
In android mini-activities are also known as.
In android mini-activities are also known as.
A) Adapter
B) Activity
C) Fragments
D) None of the above.
Answer:...
The types of intents in android is\are
The types of intents in android is\are
A) Explicit intents
B) Implicit intents
C) Start intents
D) Option A and B are correct.
Answer:...
If you want to navigate from one activity to another then android provides you which class?
If you want to navigate from one activity to another then android provides you which class?
A) Object
B) startActivity
C) Intent
D) None of the...
If you need to pass data back from an activity, Which method you should use?
If you need to pass data back from an activity, Which method you should use?
A) startActivity()
B) startActivityForResult()
C) ActivityForResult()
D)...
The Log class supports which log types?
The Log class supports which log types?
A) Error
B) Warning
C) Debug
D) All of the above.
Answer:...
What is the permission for using the camera?
What is the permission for using the camera?
A. android.permission.USE_CAMERA
B. android.permission.CAMERA
C. android.permission.hardware.CAMERA
D)...
Suppose that there are two activities in an application named ActivityOne and ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code you will write?
Suppose that there are two activities in an application named ActivityOne and ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code...
Choose the correct option regarding activity in android.
Choose the correct option regarding activity in android.
A) An activity is a window that contains the user interface of your application.
B) An application...
Which tool is used to monitor and control the Emulators on which you are debugging your applications.
Which tool is used to monitor and control the Emulators on which you are debugging your applications.
A) Android Asset Packaging Tool (AAPT)
B) Dx
C)...
In Android, visual components are called.
In Android, visual components are called.
A) Views
B) Components
C) DLL
D) None of the above.
Answer:...
Choose the correct option regarding activity in android.
Choose the correct option regarding activity in android.
A) Activity is a class.
B) When you create an android application your activity (class)...
What is the full form of DDMS?
What is the full form of DDMS?
A) Dalvik Debug Monitoring Service
B) Dalvik Design Monitoring Service
C) Direct Debug Monitoring Service
D) None...
Which virtual machine is used by Android to run application?
Which virtual machine is used by Android to run application?
A) JVM
B) Dalvik VM
C) AVD
D) None of the above.
Answer:...
In which file, all string constant should be stored in android?
In which file, all string constant should be stored in android?
A) AndroidManifest.xml
B) Bin
C) strings.xml
D) None of the above.
Answer:...
In which file, permissions are set in Android?
In which file, permissions are set in Android?
A) Src
B) AndroidManifest.xml
C) Bin
D) None of the above.
Answer:...
What is true about an Android Virtual Device (AVD)?
What is true about an Android Virtual Device (AVD)?
A) An AVD is an emulator instance that enables you to model an actual device.
B) You can create...
What is used by android for relational data storage?
What is used by android for relational data storage?
A) Tomcat
B) SQL
C) SQLiteDatabase
D) None of the above.
Answer:...
Android is open source true or false?
Android is open source true or false?
A) True
B) False
Answer:...
What is the use of versionCode attribute in AndroidManifest.xml file?
What is the use of versionCode attribute in AndroidManifest.xml file?
A) It is used to define the current application version.
B) It is used to define...
Why are view recycled?
Why are view recycled?
Answer: Less memory overhead, smoother scrolling and less view managemen...
What are the three layout managers?
What are the three layout managers?
Answer: LinearLayout, RelativeLayout, and FrameLayout
...
What is meant by responsive design?
What is meant by responsive design?
Answer: Its a layout that adjust automatically depending on screen size.
...
Where are permissions declared?
Where are permissions declared?
Answer: AndroidManifest.xml file
...
What are the four AsyncTask methods that must be overridden?
What are the four AsyncTask methods that must be overridden?
Answer: onPreExecute, doInBackground, onProgressUpdate, onPostExecute
...
Logging methods require two strings, what does each string represent?
Logging methods require two strings, what does each string represent?
Answer: The first string (Tag) identifies where the log is coming from and the...
What are the names of the specific logcats?
What are the names of the specific logcats?
Answer: Verbose, Debug, Info, Warn and Err...
How many different logcat types are there?
How many different logcat types are there?
Answer:...
_____ is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML.
_____ is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative...
_____ enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.
_____ enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without...
The ______ system provides a mechanism for collecting and viewing system debug output.
The ______ system provides a mechanism for collecting and viewing system debug output.
Answer: logging (Logcat)
...
An _____ used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose length is not known in advance.
An _____ used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose...
What directory should you use to store the info file for the app widget?
What directory should you use to store the info file for the app widget?
Answer: res/x...
What type of object does Android use to display a layout in the process for the Home screen?
What type of object does Android use to display a layout in the process for the Home screen?
Answer: RemoteVie...
What method of an app widget does Android call when an action for the app widget is broadcast?
What method of an app widget does Android call when an action for the app widget is broadcast?
Answer: onRecei...
What method of an app widget does Android call when the user adds the widget to the Home screen?
What method of an app widget does Android call when the user adds the widget to the Home screen?
Answer: onUpda...
What occupies one or more cells on the Home screen and can display data and receive periodic updates?
What occupies one or more cells on the Home screen and can display data and receive periodic updates?
Answer: app widge...
What typically occupies a single cell on the Home screen and provides a way for users to start an app?
What typically occupies a single cell on the Home screen and provides a way for users to start an app?
Answer: app ico...
To register an app widget, add a receiver element to the ______ file.
To register an app widget, add a receiver element to the ______ file.
Answer: AndroidManifest.x...
Subscribe to:
Posts (Atom)