Android Interview Questions And Answers For Freshers Experienced

Android Interview Questions And Answers For Freshers Experienced. Here Coding compiler sharing a list of 295 android interview questions for experienced and freshers. This list will help you to prepare well for android technical job interviews and crack your next android job interview. All the best for your future and happy learning.

Android Interview Questions

  1. What is URLConnection?
  2. What is logging (Logcat)?
  3. What is AsyncTask?
  4. What is JSON?
  5. How many different logcat types are there?
  6. What are the names of the specific logcats?
  7. Logging methods require two strings, what does each string represent?
  8. What are the four AsyncTask methods that must be overridden?
  9. Where are permissions declared?
  10. What is meant by responsive design?

Android Interview Questions And Answers

1) What is URLConnection?

A) An URLConnection 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.

2) What is logging (Logcat)?

A) The logging (Logcat) system provides a mechanism for collecting and viewing system debug output.

3) What is AsyncTask?

A) AsyncTask 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.

4) What is JSON?

A) JSON 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.

5) How many different logcat types are there?

A) 5

6) What are the names of the specific logcats?

A) Verbose, Debug, Info, Warn and Error

7) Logging methods require two strings, what does each string represent?

A) The first string (Tag) identifies where the log is coming from and the second is the specific log message.

8) What are the four AsyncTask methods that must be overridden?

A) onPreExecute, doInBackground, onProgressUpdate, onPostExecute

9) Where are permissions declared?

A) AndroidManifest.xml file

10) What is meant by responsive design?

A) Its a layout that adjust automatically depending on screen size.

Android Interview Questions For Freshers

11) What are the three layout managers?

A) LinearLayout, RelativeLayout, and FrameLayout

12) Why are view recycled?

A) Less memory overhead, smoother scrolling and less view management.

13) What is Activity Lifecycle?

A) onCreate, onStart, onResume, onPause, onStop, onDestroy

14) What is onPause?

A) Partially visible, Popup or Dialog

15) What is onStop?

A) Not visible

16) What is Service Lifecycle

A) onCreate, startCommand, onBind

17) What is onUnbind?

A) stopService/stopSelf, onDestroy

18) What are Android Components?

A) Activity, Service, Broadcast Receiver, Content Provider

19) What Android 4.0 Library contains?

A) A project folder that contains the android.jar file which includes all class libraries needed to build an Android app for a specified version

20) What main/assets/ directory contains?

A) Directory that contains asset files that are accessed through classic file manipulation

Android Interview Questions And Answers For Freshers

21) What main/gen/ directory contains?

A) Directory that contains automatically generated JAVA files

22) What is Change Gravity?

A) A tool that changes the linear alignment of a control so that is is aligned to the left, center, right top or bottom of an object or the screen

23) What is compound condition?

A) More than one condition included in an If statement

24) What is decision structure?

A) A fundamental control structure used in computer programming that deals with the different conditions that occur based on the values entered into an application

25) What is equals method?

A) A method of the String class that JAVA uses to compare strings

26) What is hexadecimal color code?

A) A triplet of three colors using hexadecimal numbers, where colors are specified first by a pound sign followed by how much red (00 to FF), how much green (00 to FF), and how much blue, (00 to FF) are in the final color.

27) What is If Else statement?

A) A statement that executes one set of instructions if a specified condition is true and another set of instructions if the condition is false.

28) What is if statement?

A) A statement that executes one set of instructions if a specified condition is true and takes no action if the condition is not true.

29) What is isChecked() method?

A) A method that tests a checked property to determine if a RadioButton object has been selected.

30) What is launcher icon?

A) An icon that appears on the home screen to represent the application.

Android Developer Interview Questions And Answers For Freshers

31) What is margin?

A) Blank space that offsets a control by a certain amount of density independent pixels (dp) on each of its four sides.

32) What is nest?

A) To place one statement, such as an If statement, within another statement.

33) What is Radio Group?

A) A group of RadioButton controls; only one RadioButton control can be selected at a time.

34) What is toast notification?

A) A message that appears as an overlay on a user’s screen, often displaying a validation warning.

35) What is ACTION_VIEW?

A) A generic action you can use to send any request to get the most reasonable action to occur.

36) What is adapter?

A) Provides a data model for the layout of a list and for converting the data from the array into list items.

37) What is array variable?

A) A variable that can store more than one value

38) What is a break?

A) A statement that ends a case within a Switch statement and continues with the statement following the Switch decision structure.

39) What is a case?

A) A keyword used in a Switch statement to indicate a condition. In a Switch statement, the case keyword is followed by a value and a colon.

40) What is an element?

A) A single individual item that contains a value in an array.

Android Basic Interview Questions And Answers

41) What is ListActivity?

A) A class that displays a list of items within an app.

42) What is onListItemClick()?

A) A method called when an item in a list is selected.

43) What is position?

A) The placement of an item in a list. When an item in a list is selected, the position of the item is passed from the onListItemClick method and evaluated with a decision structure. The first item is assigned the position of 0, the second item is assigned the position of 1, and so forth.

44) What is setListAdapter?

A) A command that projects your data to the onscreen list on your device by connecting the listActivity’s object to array data.

45) What is Switch?

A) A type of decision statement that allows you to choose from many statements based on an integer or char input.

46) What is URI?

A) An acronym for Uniform Resource Identifier, a URI is a string that identifies the resources of the Web. Similar to a URL, a URI includes additional information necessary for gaining access to the resources required for posting the page.

47) What is URL?

A) An acronym for Uniform Resource Locator, a URL is a Web site address.

48) What is 9-patch image?

A) A special image with predefined stretching areas that maintain the same look on different screen sizes

49) What is android:oneshot?

A) An attribute of the animation-list that determines whether an animation plays once and then stops or continues to play until the Stop Animation button is tapped.

50) What is AnimationDrawable class?

A) A class that provides the methods for Drawable animations to create a sequence of frame-by-frame images

Android Basic Interview Questions And Answers For Freshers

51) What is animation-list?

A) An XML root element that references images stored in the drawable folders

52) What is Frame animation?

A) A type of animation, also called frame-by-frame animation, that plays a sequence of images, as in a slide show, with a specified interval between images.

53) What is motion tween?

A) A type of animation that specifies the start state of an object, and then animates the object a predetermined number of times or an infinite number of times using a transition.

54) What is setBackgroundResource?

A) A method that places images in the frame-by-frame display for an animation, with each frame pointing to an image referenced in the XML resource file.

55) What is startAnimation?

A) A method that begins the animation process of a View object by calling the AnimationUtils class utilities to access the resources necessary to load the animation.

56) What is Tween animation?

A) A type of animation that, instead of using a sequence of images, creates an animation by performing a series of transformations on a single image, such as position, size, rotation, and transparency, on the contents of a View object.

57) What is tween effect?

A) A transition that changes objects from one state to another, such as moving, rotating, growing, or shrinking.

58) What is Android Application Module?

A) The container for application’s source code, resource files, and application level settings, such as the module-level build file, resource files, and Android Manifest file

59) What is Test Module?

A) Module that contains the source code to test application projects and is built into test application that run on a device

60) What is JUnit?

A) A unit testing framework for the Java programming language

Android Developer Interview Questions For Freshers

61) What is TDD (Test-driven development)?

A) A software development process that relies on the repetition of a very short development cycle: first an automated test case is written that defines a desired improvement of new function

62) What is Test case?

A) Set of conditions under which a tester will determine whether an application, software system or one of features is working as was originally established for it to do

63) What is Software system?

A) System of intercommunicating components based on software forming part of the computer system

64) What is Library module?

A) Module that contains shareable Android source code and resources that developer can reference in Android projects

65) What is GAE (Google App Engine)?

A) A PaaS cloud computing platform for developing and hosting web applications in Google-managed data centers

66) What is PaaS?

A) A category of cloud computing services that provides a platform allowing customers to develop, run, and manage applications without the complexity of building and maintaining the infrastructure

67) What is GCM (Google Cloud Messaging)?

A) A mobile service developed by Google that enables third-party application developers to send notification data or information from developer-run servers to applications

68) What is .idea/ directory?

A) Directoty for IntelliJ IDEA settings

69) What is app/ directory?

A) A folder that contains application module directories and files

70) What is gradle/ directory?

A) A folder that contains the gradle-wrapper files

Basic Android Interview Questions And Answers For Freshers

71) What is .gitignore?

A) Specifies the untracked files that Git should ignore

72) What is build.gradle?

A) Customizable properties for the build system

73) What is gradle.properties?

A) Project-wide gradle settings

74) What is gradlew?

A) Gradle startup script for Unix

75) What is gradlew.bat?

A) Gradle startup script for Windows

76) What is local.properties?

A) Customizable computer-specific properties for the build system, such as the path to the SDK installation

77) What is .iml directory?

A) Module file created by IntelliJ IDEA to store module information

78) What is settings.gradle?

A) Specifies the sub-projects to build

79) What is build/ directory?

A) Directory that contains build folders for the specified build variants

80) What is libs/ directory?

A) Directory that contains private libraries

Android Questions For Freshers

81) What is src/ directory?

A) Directory that contains the stub Activity file and other source code files

82) What is androidTest/ directory?

A) Directory that contains the instrumentation tests

83) What is main/java/com.<project>.<app>?

A) Directory that contains Java source code for the app activities

84) What is main/jni/ directory?

A) Directory that contains native code using the JNI

85) What is Android NDK?

A) A toolset that allows you to implement parts of your app using native-code languages

86) What is IDL (interface definition language)?

A) A specification language used to describe a software component’s API

87) What is main/res/ directory?

A) Directory that contains application resources, such as drawable files, layout files, and string values

88) What is anim/ directory?

A) Directory for XML files that are compiled into animation objects

89) What is color/ directory?

A) Directory for XML files that describe colors

90) What is drawable/ directory?

A) Directory for bitmap files (PNG, JPG, or GIF), 9-Patch image files, and XML files that describe Drawable shapes or Drawable objects that contain multiple states

Android Developer Interview Questions

91) What is ColorStateList?

A) An object you can define in XML that you can apply as a color, but will actually change colors, depending on a state of the View object to which it is aplied

92) What is mipmap/ directory?

A) Directory for app launcher icons

93) What is layout/ directory?

A) Directory for XML files that are compiled into screen layouts

94) What is menu/ directory?

A) Directory for XML files that define application menus

95) What is raw/ directory?

A) Directory for arbitrary raw asset files

96) What is AAPT (Android Asset Packaging Tool)?

A) AAPT is a part of SDK that allows developers to view, create and update Zip-compatible archives

97) What is values/ directory?

A) Directory for XML files that define resources by XML element type

98) What is xml/ directory?

A) Directory for miscellaneous XML files that configure application components

100) What is AndroidManifest.xml?

A) The control file that describes the nature of the application and each of its components

Important Android Interview Questions And Answers

101) What is app.iml/ directory?

A) IntelliJ IDEA module

102) What is proguard-rules.pro?

A) ProGuard settings file

103) What is API Level, codename of Android 2.3.3 – 2.3.7?

A) 9-10, Gingerbread

104) What is API Level, codename of Android 4.0.3 – 4.0.4?

A) 15, Ice Cream Sandwich

105) What is API Level, codename of Android 4.1 – 4.3?

A) 16-18, Jelly Bean

106) What is API Level, codename of Android 4.4?

A) 19, KitKat

107) What is API Level, codename of Android 5.0 – 5.1?

A) 20-21, Lollipop

108) API Level, codename of Android 6.0?

A) 23, Marshmallow

109) What is android:minSdkVersion?

A) Specifies the minimum API Level on which the application is able to run

110) What is android:targetSdkVersion?

A) Specifies the API Level on which the application is designed to run

Most Asked Android Interview Questions And Answers

111) What is android:maxSdkVersion?

A) Specifies the maximum API Level on which the application is able to run

112) What is applicationId?

A) Fully qualified package name for the application

113) What is hexadecimal color code?

A) A triplet of three colors using hexadecimal numbers, where colors are specified first by a pound sign followed by how much red (00 to FF), how much green (00 to FF), and how much blue, (00 to FF) are in the final color.

114) What is isChecked() method?

A) A method that tests a checked property to determine if a RadioButton object has been selected.

115) What is toast notification?

A) A message that appears as an overlay on a user’s screen, often displaying a validation warning.

116) What is ACTION_VIEW?

A) A generic action you can use to send any request to get the most reasonable action to occur.

117) What is ListActivity?

A) A class that displays a list of items within an app.

118) What is onListItemClick()?

A) A method called when an item in a list is selected.

119) What is setListAdapter?

A) A command that projects your data to the onscreen list on your device by connecting the listActivity’s object to array data.

120) What is 9-patch image?

A) A special image with predefined stretching areas that maintain the same look on different screen sizes

Android Interview Questions For Experienced

121) What is setBackgroundResource?

A) A method that places images in the frame-by-frame display for an animation, with each frame pointing to an image referenced in the XML resource file.

122) What is startAnimation?

A) A method that begins the animation process of a View object by calling the AnimationUtils class utilities to access the resources necessary to load the animation.

123) What is Tween animation?

A) A type of animation that, instead of using a sequence of images, creates an animation by performing a series of transformations on a single image, such as position, size, rotation, and transparency, on the contents of a View object.

124) What is tween effect?

A) A transition that changes objects from one state to another, such as moving, rotating, growing, or shrinking.

125) What is TDD (Test-driven development)?

A) A software development process that relies on the repetition of a very short development cycle: first an automated test case is written that defines a desired improvement of new function

126) What is GAE (Google App Engine)?

A) A PaaS cloud computing platform for developing and hosting web applications in Google-managed data centers

127) What is GCM (Google Cloud Messaging)?

A) A mobile service developed by Google that enables third-party application developers to send notification data or information from developer-run servers to applications

128) What is Android NDK?

A) A toolset that allows you to implement parts of your app using native-code languages

129) What can sensors measure?

A) Relative humidity
Pressure
Magnetic field
Steps taken
Proximity
The rate of ratation of the device on x,y,z axes

130) What is a Physical Sensor?

A) Sensors that pieces of hardware that are physically present on the device. Know as Hardware Sensors.

Top Android Interview Questions Experienced

131) What are Synthetic sensors?

A) Sensors that are not physicall present on the device. They are derived from one or more sensors

132) What is Raw?

A) Values directly given by the sensor without any correction logic.

Accelerometers, proximity sensors, light sensors,

133) What is Calibrated?

A) Values from sensors that are corrected by the operating system

134) What is Fused?

A) Sensors that gets values from two or more sensors. These values are combined to one value

135) What is SensorManager?

A) Provides access for your app to the sensors.

136) What is Continuous?

A) That report mode when sensor events are generated at a constant rate defined by the sampling peroid

137) What is On change?

A) That report mode when sensor events are generated only if the measured values have changed since the last known value

138) What is One shot?

A) The report mode when sensors only are triggerd once in the entire duration of the event

139) What is Special Trigger?

A) The report mode when the sensor only is trigged when it’s called on. It listen for an event to fire

140) Which of the following are true about Intent.CALL_ACTION?

A) dial + dialled

Android Interview Questions And Answers For Experienced

141) Activity results handled by the onActivityResult() method are differentiated from one another using which code?

A) Result Code

142) Which of the following is layout that you can use in a window in an Android application?

A) FrameLayout

143) How do you access the string resource stored in the strings.xml file?

A) You can use the getResources() method

144) Which of the following methods is used to return a View from a layout file given the ID of the View?

A) .findViewById(int id)

145) Which of the following used to detect when a user clicks or taps on a button?

A) OnClickListener

146) What is contained within the manifest xml file?

A) The permissions the application requires Correct

147) Android: Which attribute will be used in XML if the Java code needs a reference to View??

A) android:id

148) How do you programmatically determine whether a RadioButton is checked?

A) You should check the isChecked() method

149) What is NotificationManager class?

A) The NotificationManager class is used to display notifications on the device’s status bar

150) Which dialog box can you use in you Android application?

A) AlertDialog

Android Interview Questions For 1 Year Experience

151) On android, a layout can contain other layout?

A) True

152) How to set data for a Spinner control?

A) Use method setAdapter()

153) In auto-generated code of an Android app, what is R class?

A) Contains IDs of the project resources

154) How does Android system manage activity’s life cycle?

A) Via system activity stack

155) What is the correct HTML5 element for playing video files?

A) <video>

156) Does CSS support to detecting device size and orientation?

A) True

155) What is NOT correct about Controller in Sencha Touch?

A) Responsible for responding to events that occur within your app

156) Which file is entry point for Sencha Touch app?

A) app.js

157) Which doctype is correct for HTML5?

A) <!DOCTYPE html>

158) Which kind of application when creating with Sencha Touch?

A) Hybrid app

159) Graphics defined by SVG is in which format?

A) XML

160) In HTML5, onblur and onfocus are?

A) Event attributes

170) Which Android File API to create a file?

A) openFileOutput()

171) Does HTML5 native support for local storage?

A) True

Android Web Services Interview Questions And Answers

172) How to check if browser supports web storage?

A) Check if typeof(Storage) !== “undefined”

173) How to apply stylesheet with HTML element by id?

A) #id

174) How to get the form data in Sencha Touch?

A) getFormInstance().getValues();

175) Which permission needed in order to use MapActivity?

A) <uses-permission android:name=”android.permission.INTERNET” />

176) On android services, onStart() and onBind() are the same?

A) False

177) Do we need API key for displaying Google Maps in Android?

A) yes

178) How to register a broadcast receiver?

A) Via AndroidManifestxml file

179) Is color a new HTML5 element of input type?

A) yes

180) Intent mylntent = new Intent(IntentACTION_VIEW Uri.pars(“https://www.google.com”)); startActivity(myIntent)

A) myIntent is implicit Intent.

Android Interview Questions And Answers For 1 Year Experience

181) In android intent. The activity can be embedded inside of another activity that hosts gadgets is belonged to

A) CATEGORY_GADGET

182) Where we can create tables and columns to them, create views or triggers?

A) onCreate()

183) “Gingerbread” is nickname of which version?

A) Android versiov2.3.x

184) By default UI components made in the UI editor should have text defined in file?

A) string.xml

185) SQLite database save data in which storage?

A) Internal storage

186) How to set layout’s attribute programmatically in android?

A) Use LayoutParams class

187) What is base of all Sencha Touch component?

A) ExtComponent

188) Which method to display a dialog?

A) show()

189) How to change the main color of Sencha Touch application?

A) Change the $base-color variable in app.scss

190) Which activity class do you need to inherit to show Google map?

A) MapActivity class

Android Interview Programming Questions

191) What are 2 ways a Service can run?

A) Bounded and Unbounded

192) How to show or hide a Sencha Touch component?

A) Call .show() or .hide() method of component itself

193) When a dialog is requested for the first time, which method will Android call from your Activity?

A) onCreateDialog(int)

194) Do we need to declare all of Controller in app.js with Sencha Touch?

A) Yes

195) In android, normally SDCard is?

A) External storage

196) Which of the following is best choice for simple animations for your website?

A) JavaScript

197) Which statement is correct about web storage?

A) It is key/value data

198) Android UI is threadsafe? Is it true or false?

A) False

199) Do we need to register all of View classes in app.js with Sencha Touch?

A) No

200) Which class do we use for listening location update?

A) LocationManager class

Android Interview Questions For 2 Years Experience

201) How to make a TextView to be editable?

A) Either set its attribute editable =’true’ or Use EditText class instead of TextView class

202) What is NOT correct about Store in Sencha Touch?

A) Load data via a Proxy

203) How to define a new Sencha Touch class?

A) Use Extdefine()

204) If the action is ACTION_CALL. what the data field would be?

A) URI with the number to call

205) Android MapActivity is?

A) Base class with code to manage the boring necessities of any activity that displays a MapView

206) There are five different methods to store persistent data. They are: Shared Preferences. Internal Storage. External Storage. Network and __?

A) SQLite Database

207) What are location providers in Android?

A) GPS & Network

208) Android AsyncTask create new thread in background?

A) True

209) What is not true about the Android application lifecycle?

A) Each activity of an app is run in its own process

210) Intent myIntent = new Intent(this. ActivityTwo.class);?

A) myIntent is explicit Intent

Android Interview Questions With Answers

211) What is value on component’s attribute layout_widtlf and layout_heighl to display the component big enough to?

A) wrap_content

212) What is TRUE about localStorage?

A) It is never expired

213) How to listen to an event in Sencha Touch class?

A) Write event handler within listeners:{} body

214) Which method to open a Hap connection to an Uri?

A) url.openConnection()

215) Which statement is NOT correct about PhoneGap?

A) It doesn’t support for Java phone

216) Which are location providers in android?

A) GPS

217) How many CSS files can be included in a Sencha Touch project?

A) Many

218) You must declare all application components in Manifest file in this way?

A) <provider> elements for content providers

219) In class SQLiteOpenHelper class, there are 2 methods we should usually override. What are they?

A) onCreate() and onUpgrade()

220) Is the main thread called the UI thread?

A) Yes

Android Interview Questions And Answers For 2 Years Experience

221) If the action is ACTION_CALL, what the data field would be ?

A) URI with the number to call

222) Android Async Task create new thread in background?

A) true

223) Which of following is true?

A) myIntent is explicit intent

224) Which method to opena Http connection to an Uri?

A) url.openConnection()

225) Which are location provider in Android ?

A) LBS

226) How many css file can be included in a Sencha Touch project ?

A) many

227) How to set position of a Sencha Touch component?

A) all of above

228) In Android, which of the following statement is CORRECT to reload a layout?

A) setContentView(R.layout.some_layout)

229) In Android, which layout mode defines the positions of each component relative to each other?

A) RelativeLayout

230) Read the following content and answer the question?

A) SmsManager&lt

Android Developer Job Interview Questions

231) Does AsyncTask create new thread in background?

A) True

232) In Android, which manifest permission is needed when use GPS location?

A) ACCESS_FINE_LOCATION

233) How can you define the minimum version of Android required?

A) Using the minSdkVersion attribute in the AndroidMan

234) Toast is a class to display a message in Android. How to set position of a Toast?

A) Using setGravity()

235) In Android, what does dp unit stand for?

A) density-independent

236) In Android, which method you can use to obtain the path of the external storage?

A) getExternalStorageDirectory()

237) What is the permission you need to declare in AndroidManifes?

A) WRITE_EXTERNAL_STORAGE

238) Given a table data (click to see the figure). And assume that this is on a device at 160 dpi?

A) dp * scaler = px

239) In Android, does Service create new thread in background?

A) False

240) To display a notification on upper left of Android screen, which of the following class you need to use?

A) NotificationManager + Notification

Android Based Interview Questions

241) You need to process when user clicks on a notification on upper left of Android screen?

A) PendingIntent

242) Which is the method you need to use to post a notification to be shown in the status bar?

A) notify(…)

243) To develop your own service in Android, what you need to do?

A) implements onStartCommand, onBind, onUnbind, onRebind, onCreate, onDestroy methods

244) To get data from Webserver to Android application, which of the following class you need to use to establish connection?

A) HttpURLConnection

245) What is the name of Android class do we need to use to build up an JSON object?

A) JSONObject

246) Assume that we have an Android object named stored in reader variable, and inside it has a child object named?

A) JSONObject mainObj = reader.getJSONObject(&amp;quot;main&amp;quot;);

247) In Android, can we change the GPS setting by write my own Java code?

A) False

248) When you need to use mp3 file in Android application, which folder you need to create and store mp3 file?

A) raw folder

249) Which of the following is NOT a right codename of Android version?

A) Eclair

250) What is the android:versionCode attribute in the AndroidManifest.xml file?

A) It is used to programmatically check if an application can be upgraded.

Android Interview Questions For 3 Year Experience

251) When you have two or more activities with the same INTENT FILTER action name, the Android OS will display a

A) True

252) Which of the following is the based class for the main application class in an Android application that has a user interface?

A) Activity

253) In Android, which is two location providers that you can use to obtain your position data?

A) LocationManager.GPS_PROVIDER and LocationManager.NETWORK_PROVIDER

254) In Android, the process technical to convert an address into its latitude and longitude is called?

A) Geocoding

255) What happen if the latitude is less than -90 or greater than 90?

A0 It returns an IllegalArgumentException

256) Given the following statements using openFileOutput function to store data into a file in Android?

A) The created file can be accessed by all the other applications at the same time.

257) How many activities are in focus at any time?

A) Just one

258) What is a change Gravity?

A) A tool that changes the linear alignment of a control so that is is aligned to the left, center, right top or bottom of an

259) What onListItemClick() function used for?

A) A method called when an item in a list is selected

260) What setListAdapter() function used for?

A) A command that projects your data to the onscreen list on your device by connecting the listActivity

Android Related Interview Questions

261) In Sencha Touch, app folder contains?

A) the Models, Views, Controllers and Stores for your app

262) Choose right kind of layouts supported in Sencha Touch?

A) Justify Layout

263) As discussed, there are 4 main components in Android application. And in AndroidManifest.xml file, you need to declare?

A) elements for configurations

264) Which shortcut key we can use to change orientation in an AVD simulator?

A) Ctrl+F11

265) In Android, what is contained within the XML files in layout folder?

A) The layouts and direction of screen of the app

266) What is Content Provider?

A) It is a means to share data between applications which are by default run in completely different space by Dalvik instances

267) What is Fragment?

A) A fragment can be displayed without be embedded in an activity.

268) In Android, what is the meaning of the following code in MainActivity class?

A) the main thread calls the UI thread

269) Sencha Touch is?

A) a Java framework

270) There is a kind of animation that using an XML file to define a sequence of pictures using?

A) Tween Animation

Android Interview Questions And Answers For 2 Years Experience

271) Given the following code AsyncHttpClient asynClient = new AsyncHttpClient()?

A) Yes, if it is not yet completed (success or failed)

271) PhoneGap uses HTML5, CSS, and __________ to write and deploy application.

A) JavaScript

272) Can PhoneGap work with Contacts data of mobile device?

A) true

273) Can PhoneGap framework support for playing audio?

A) true

274) When to use ASyncTask?

A) When connecting to external services for specific and short time consuming services

275) What’s Volley and what’s positive and negative with it?

A) An HTTP library that makes networking for the app easier.
Very good at handling multiplie network connections.
Not god for large download or streaming operations.

276) What types of permissions exists?

A) Normal permission – Permission that wont directly risk the user’s privacy

Dangerous permission – can give the app access to the user’s confidential data. I

277) What’s wake locks?

A) It puts the device suspended mode when the user aren’t using the device, to save battery time. If the app wants to do operations in the background without making the go to suspending mode it has request a wake lock from the system

278) What is Wake up sensor?

A) Sensor that will wake the Application Processor (AP). up from its suspended mode to report sensor events

279) What is None wake up sensor?

A) Sensors that doesn’t wake the AP. Instead the sensor event is queued in a FIFO queue

280) What is CryptoObject?

A) Wrapper class for the so called crypto object

Android Technical Interview Questions And Answers For Experienced

281) What is an implicit intent?

A) An implicit intent can specify an action that your app may not be able to do, but other apps on the phone likely could. Before launching this kind of intent, confirm that another app is able to perform the action like so:

// Verify that there are applications registered to handle this intent
// (resolveActivity returns null if none are registered)
if (sendIntent.resolveActivity(getPackageManager()) != null) {
startActivity(sendIntent);
}

282) What are the activity lifecyle callbacks?

A) onCreate()
onStart()
onResume()
onPause()
onStop()
onDestroy()

It’s best to clean up resources on onStop() and onPause(), since it’s not always guaranteed that onDestroy() will be called.

283) What are three common reasons to use an Intent?

A) To start an activity, start a service (one time operation such as downloading a file), or deliver a broadcast.

284) What is DDMS? Describe some of its capabilities.

A) DDMS is the Dalvik Debug Monitor Server that ships with Android. It provides a wide array of debugging features including:

port-forwarding services
screen capture
thread and heap information
network traffic tracking
incoming call and SMS spoofing
simulating network state, speed, and latency
location data spoofing

285) What is the relationship between the life cycle of an AsyncTask and an Activity? What problems can this result in? How can these problems be avoided?

A) Since the Async task is not tied to the lifecycle of the activity, you need to clean up an Async task if it is still running when an activity is destroyed, or it may lead to a memory leak or an IllegalArgumentException if the Async task tries to update the UI of an Activity that is no longer existing.

286) What is the difference between a fragment and an activity? Explain the relationship between the two.

A) Activity is a single, focused operation that a user can perform.
Activity implementations can make use of one or more fragments to make modular UI design, and scaling UI between small and large screens.

A fragment is essentially a modular section of an activity, with its own lifecycle and input events, and which can be added or removed at will. It is important to remember, though, that a fragment’s lifecycle is directly affected by its host activity’s lifecycle; i.e., when the activity is paused, so are all fragments in it, and when the activity is destroyed, so are all of its fragments.

287) What is difference between Serializable and Parcelable ? Which is best approach in Android ?

A) Serializable is a standard Java interface. You simply mark a class Serializable by implementing the interface, and Java will automatically serialize it in certain situations.

Parcelable is an Android specific interface where you implement the serialization yourself. It was created to be far more efficient than Serializable, and to get around some problems with the default Java serialization scheme.

288) What are two launch modes for activities?

A) A launch mode is a way to associate a new instance of an activity to the current task …you can do this either via manifest file or intent flags.

289) What is the difference between Service and IntentService? How is each used?

A) A service runs on the main thread, and an Intent service runs asynchronously.

290) How do you supply construction arguments into a Fragment?

A) Bundle, via Fragment.setArguments(Bundle) and retrieved via Fragment.getArguments(Bundle)

Android Interview Questions For Senior Developer

291) Which method is called only once in a fragment life cycle?

A) onAttach()

292) How to define a JSON Object from a String?

A) JSONObject climate = new JSONObject(jsonString)

Build a URI from a String called GITHUB_BASE_URL
Uri builtUri = Uri.parse(GITHUB_BASE_URL).buildUpon()
.appendQueryParameter(PARAM_QUERY, githubSearchQuery)
.appendQueryParameter(PARAM_SORT, sortBy)
.build();

return url;

293) How to Build a URL from URI?

A) URL url = null;
try {
url = new URL(builtUri.toString());
} catch (MalformedURLException e) {
e.printStackTrace();
}

294) Where should we add permission to the applications?

A) AndroidManifest.xml

295) The correct sintaxis to add Internet Permission?

A) <uses-permission android:name=”android.permission.INTERNET” />

OTHER INTERVIEW QUESTIONS

  1. Mulesoft Interview Questions
  2. JSON Interview Questions
  3. PeopleSoft HRMS Interview Questions
  4. PeopleSoft Functional Interview Questions
  5. PeopleTools Interview Questions
  6. Peoplesoft Technical Interview Questions
  7. 199 Peoplesoft Interview Questions
  8. 200 Blue Prism Interview Questions
  9. Visualforce Interview Questions
  10. Salesforce Interview Questions
  11. 300 SSIS Interview Questions
  12. PHP Interview Questions And Answers
  13. Alteryx Interview Questions
  14. AWS Cloud Support Interview Questions
  15. Google Kubernetes Engine Interview Questions
  16. AWS Devops Interview Questions
  17. Apigee Interview Questions
  18. Actimize Interview Questions
  19. Kibana Interview Questions
  20. Nagios Interview Questions
  21. Jenkins Interview Questions
  22. Chef Interview Questions
  23. Puppet Interview Questions
  24. DB2 Interview Questions
  25. AnthillPro Interview Questions
  26. Angular 2 Interview Questions
  27. Hibernate Interview Questions
  28. ASP.NET Interview Questions
  29. Kubernetes Interview Questions
  30. Docker Interview Questions

Leave a Comment