Android Interview Questions

Question-1. What is Android ?

Answer- Android is a stack of software for mobile devices which includes an Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine.

Question-2. Describe Android application Architecture ?

Answer- Android application architecture has the following components. They are as follows −
                Services − It will perform background functionalities
                Intent − It will perform the inter connection between activities and the data passing mechanism
                Resource Externalization − strings and graphics
                Notification − light, sound, icon, notification, dialog box, and toast
                Content Providers − It will share the data between applications
                            

Question-3. What is An Activity ?

Answer- Activity performs actions on the screen. If you want to do any operations, we can do with activity

Question-4. What is the APK format ?

Answer- The Android packaging key is compressed with classes, UI's, supportive assets and manifest. All files are compressed to a single file is called APK.

Question-5. What is An Intent ?

Answer- It is connected to either the external world of application or internal world of application, Such as opening a pdf is intent and connect to the web browser etc.

Question-6. What is an explicit Intent ?

Answer- Android Explicit intent specifies the component to be invoked from activity. In other words, we can call another activity in android by explicit intent.

Question-7. What is an implicit Intent ?

Answer- Implicit Intent doesn't specify the component. In such case, intent provides information of available components provided by the system that is to be invoked.

Question-8. What is An android manifest file ?

Answer- Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code.

Question-9. What language does android support to develop an application ?

Answer- Android applications has written using the java(Android SDK) and C/C++(Android NDK).

Question-10. What do ADT stands for?

Answer- ADT stands for Android development tool. This is useful to develop the applications and test the applications.

Question-11. What are the tools are placed in An Android SDK ?

Answer- Android SDK collaborated with Android Emulator, DDMS(Dalvik Debug Monitoring Services),AAPT(Android Asset Packaging tool) and ADB(Android debug bridge)

Question-12. What is viewGroup in android ?

Answer- View group is a collection of views and other child views, it is an invisible part and the base class for layouts.

Question-13. What is a service in android ?

Answer- The Service is like as an activity to do background functionalities without UI interaction.

Question-14. What is a content provider in android ?

Answer- A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. A content provider can use different ways to store its data and the data can be stored in a database, in files, or even over a network.

Question-15. What are the notifications available in android ?

Answer-
Toast Notification − It will show a pop up message on the surface of the window
              Status Bar Notification − It will show notifications on status bar
              Dialogue Notification − It is an activity related notification.
                            

Question-16. What is container in android ?

Answer- The container holds objects, widgets, labels, fields, icons, buttons etc.

Question-17. What is ADB in android ?

Answer- It is acts as bridge between emulator and IDE, it executes remote shell commands to run applications on an emulator

Question-18. What is ANR in android ?

Answer- ANR stands for application is not responding, basically it is a dialog box that appears when the application is not responding.

Question-19. What is an Adapter in android ?

Answer- The Adapter is used to create child views to represent the parent view items.

Question-20. What is shared preferences in android ?

Answer- Shared preferences are the simplest mechanism to store the data in XML documents.

Question-21. What are the key components in android architecture ?

Answer-
            • Linux Kernel
            • Libraries
            • Android Framework
            • Android applications.
                            

Question-22. What does the intent filter do in android ?

Answer- Intent filters are filter out the intents.

Question-23. Where layouts are placed in android ?

Answer- In The Layout folder, layouts are placed as XML files.

Question-24. What is nine-patch images tool in android ?

Answer- We can change bitmap images in nine sections as four corners, four edges and an axis

Question-25. How many dialog boxes do support in android ?

Answer- AlertDialog, ProgressDialog, DatePickerDialog, and TimePickerDialog

Question-26. What are the exceptions available in android ?

Answer- InflateException,Surface.OutOfResourceException,SurfaceHolder.BadSurfaceTypeException,and WindowManager.BadTokenException

Question-27. What is the order of dialog-box in android ?

Answer- Positive, Neutral, Negative.

Question-28. What are the different storages available in android ?

Answer- Shared Preferences, Internal Storage, External Storage, SQLite Databases and Network Connection.

Question-29. What is a Sticky Intent in android ?

Answer- Sticky Intent is also a type of intent which allows the communication between a function and a service for example, sendStickyBroadcast() is perform the operations after completion of intent also.

Question-30. How to Translate in Android ?

Answer- Android uses Google translator to translate data from one language into another language and placed as a string while development.

Question-31. How is the use of web view in Android ?

Answer- WebView is UI component that can display either remote web-pages or static HTML.

Question-32. Why can't you run java byte code on Android ?

Answer- Android uses DVM (Dalvik Virtual Machine ) rather using JVM(Java Virtual Machine), if we want, we can get access to .jar file as a library.

Question-33. How does android track the application on process ?

Answer- Android provides a Unique ID to all applications is called as Linux ID,this ID is used to track each application.

Question-34. How to change application name after its deployment ?

Answer- It's not truly recommended to change application name after it's deployment, if we change, it will impact on all other internal components.

Question-35. Define the application resource file in android ?

Answer- JSON,XML bitmap.etc are application resources. You can injected these files to build process and can load them from the code.

Question-36. How to launch an activity in android ?

Answer- Using with intent, we can launch an activity.
            Intent intent = new Intent(this, MyTestActivity.class);

            startActivity(intent);
                            

Question-37. How do you pass the data to sub-activities android ?

Answer- Using with Bundle, we can pass the data to sub activities.
            Bundle bun = new Bundle();

            bun.putString("EMAIL", "contact@tutorials.com");
                            

Question-38. What is singleton class in android ?

Answer- A class which can create only an object, that object can be share able to all other classes.

Question-39. What is fragment in android ?

Answer- Fragment is a piece of activity, if you want to do turn your application 360 degrees, you can do this by fragment.

Question-40. What is sleep mode in android ?

Answer- Sleep mode mean CPU will be sleeping and it doesn't accept any commands from android device except Radio interface layer and alarm.

Question-41. Which kernal is used in android ?

Answer- Android is customized Linux 3.6 kernel.

Question-42. How to update UI from a service in android ?

Answer- Use a dynamic broadcast receiver in the activity, and send a broadcast from the service. Once the dynamic receiver is triggered update UI from that receiver.

Question-43. What folders are impotent in android project ?

Answer-
          AndroidManifest.xml
          build.xml
          bin/
          src/
          res/
          assets/
                            

Question-44. What are application Widgets in android ?

Answer- App Widgets are miniature application views that can embedded in other applications (such as the Home screen) and receive periodic updates. These views has referred to as Widgets in the user interface, and you can publish one with an App Widget provider.

Question-45. How do you find any view element into your program ?

Answer- Using with findViewById we can find view element.

Question-46. What is drawable folder in android ?

Answer- A compiled visual resource that can used as a backgrounds,banners, icons,splash screen etc.

Question-46. What are the type of flags to run an application in android ?

Answer-
        FLAG_ACTIVITY_NEW_TASK

        FLAG_ACTIVITY_CLEAR_TOP.
                            

Question-47. Who is the founder of Android ?

Answer- Andy Rubin.

Question-48. What are the code names of android ?

Answer-
      1. Aestro
      2.  Blender
      3.  Cupcake
      4.  Donut
      5.  Eclair
      6.  Froyo
      7.  Gingerbread
      8.  Honycomb
      9.  Ice Cream Sandwitch
      10. Jelly Bean
      11. Kitkat
      12. Lollipop
      13. Marshmallow
                            

Question-49. What are the advantages of android ?

Answer-
    Open-source: It means no licence, distribution and development fee.
    Platform-independent: It supports windows, mac and linux platforms.
    Supports various technologies: It supports camera, bluetooth, wifi, speech, EDGE etc. technologies.
    Highly optimized Virtual Machine: Android uses highly optimized virtual machine for mobile devices, called DVM (Dalvik Virtual Machine).
                            

Question-50. Does android support other language than java ?

Answer- Yes, android app can be developed in C/C++ also using android NDK (Native Development Kit). It makes the performance faster. It should be used with android SDK.

Question-51. What are the core building blocks of android ?

Answer- The core building blocks of android are:
    o Activity
    o View
    o Intent
    o Service
    o Content Provider
    o Fragment etc.
                            

Question-52. What are the life cycle methods of android activity ?

Answer- There are 7 life-cycle methods of activity. They are as follows:
    1.  onCreate()
    2.  onStart()
    3.  onResume()
    4.  onPause()
    5.  onStop()
    6.  onRestart()
    7.  onDestroy()
                            

Question-53. What is AAPT ?

Answer- AAPT is an acronym for android asset packaging tool. It handles the packaging process.

Question-54. What is content provider ?

Answer- Content providers are used to share information between android applications.

Question-55. What is fragment ?

Answer- Fragment is a part of Activity. By the help of fragments, we can display multiple screens on one activity.

Question-56. What is the Google Android SDK ?

Answer- The Google Android SDK is a toolset which is used by developers to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment and allow them to test and debug their codes.

Question-57. What is nine-patch images tool in Android ?

Answer- We can change bitmap images in nine sections as four corners, four edges and an axis.

Question-58. What is application Widgets in Android ?

Answer- Application widgets are miniature application views that can be embedded in other applications and receive periodic updates.

Question-59. What is singleton class in Android ?

Answer- A singleton class is a class which can create only an object that can be shared all other classes.

Question-60. What do you mean by a drawable folder in Android ?

Answer- In Android, a drawable folder is compiled visual resource that can use as a backgrounds, banners, icons, splash screen etc.

Question-61. What is DDMS ?

Answer- DDMS stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features:
    1.  Port forwarding services
    2.  Screen capture
    3.  Thread and heap information
    4.  Network traffic tracking
    5.  Location data spoofing
                            

Question-62. Define Android Architecture ?

Answer- Android architecture consists of 4 components:
    1.  Linux Kernal
    2.  Libraries
    3.  Android Framework
    4.  Android Applications
                            

Quedtion-63. What is a portable wi-fi hotspot

Answer- The portable wi-fi hotspot is used to share internet connection to other wireless devices.

Question-64. Name some exceptions in android ?

Answer-
 
  o Inflate Exception
  o Surface.OutOfResourceException
  o SurfaceHolder.BadSurfaceTypeException
  o WindowManager.BadTokenException
                            

Question-65. What are the basic tools used to develop an android app ?

Answer-
  o JDK
  o Eclipse+ADT plugin
  o SDK Tools
                            
Tutors
  • Manjit Singh

  • Umesh Kumar

  • Sandeep Kaur

  • Ramandeep Singh

  • Sunil Sharma

  • Vijay Mahajan

  • Gurpreet Kaur

Our Skills
  • Java 100%
  • Android 95%
  • IOS 85%
  • PHP 95%
  • Design 90%
  • HTML CSS 95%
  • WordPress 95%
  • Magento 95%
  • UI 95%
FOLLOW US ON
facebook link  linkedin link  google plus link  twitter link  website rss link
Placements Done Over 5000
WE ACCEPT ONLINE PAYMENTS
online payment
PAY ONLINE
online payment