TOP 25+ Android Interview Questions And Answers
1. What is android?
Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java languages byte code which later transforms into .dex format files.
2. What is activity?
A single scre an applicationwith supporting Java code
3. What is intent in Android?
A class (Intent) will describes what a caller desires to do. The caller will send this intent to Android’s intent resolver, which finds the most suitable activity for the intent. E.g. opening a PDF document is
an intent, and the Adobe Reader apps will be the perfect activity for that intentcIass).
4. What is a Sticky Intent?
sendStickyBroadcast() performs a sendBroadcast (Intent) known as sticky, i.e. the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of registerReceiver (BroadcastReceiver, IntentFilter). In all other ways, this behaves the same as sendBroadcast(Intent)
One example of a sticky broadcast sent via the operating system is
ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action — even with a null BroadcastReceiver — you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the batterywithout necessarily registering for all future state changes in the battery.
Is there anyway to determine if an Intent passed into a BroadcastReceiver’s onReceive is the result of a sticky Boradcast Intent, or if it was just sent?
Example for sticky broadcast
When you call registerReceiver( ) for that action — even with a null BroadcastReceiver — you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.
5. What Programming languages does Android support for application development?
Android applications su ppor using Java programming Language. which is coded in Java and complied using Android SDK.
6. What is a resource?
A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.
7. How will you record a ihone call in Android? or How to handle on Audio Stream for a call in Android?
PermissionsWOCESS_OUTGOING_CALLS: Will Allows an application to monitor, modify, or abort outgoing calls. So through that we can monitor the Phone caIlsi
8. What’s the difference between class, file and activity in android?
Class – The Class file is complied from .java file. Android will use this .class file to produce the executable apk
File – It is a block of resources, srbitrary information. It can be an y file type.
Activity – An activity is the equivalent of a Frame/Window in GUI toolkits. It is not a file or a file type it is just a class that can be extended in Android for loading UI elements on view.
9. Does Android support the Bluetooth serial port p roflle?
AYes.
10. Can an application be started on powerup?
Yes.
11. What is APK format.
The APK file is compressed AndroidManifest.xml file with extension .apk, Which have application code (.dex files), resource files, and other files which is compres sed into single .apk file.
12. How to Translate in android ?
The Google translator translates the data of one language into another language by using XMPP to transmit data. You can type the message in English and select the language which is understood by the citizens of the country in order to reach the message to the citizens.
13. What is an action?
A description of something that an Intent sender desires.
14. What are the advantages of Android?
The following are the advantages of Android:
* The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like Orange and AT&T will be broken by Google Android.
* Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized
jnnovative products like the location -aware services, location of a nearby convenence store etc., are some of the additive facilities in Android.
15. What is the TTL (Time to Live)? Why is it required?
TTL is a value in data packet of Internet Protocol. It communicates to the network router whether or not the packet should be in the network for too long or discarded. Usually, data packets might not be transmitted to their intended destination within a stipulated period of time. The TTL value is set by a system default value which is an 8 -bit binary digit field in the header of the packet. The purpose of TTL is, it would specify certain time limit in seconds, for transmitting the packet header. When the time isexhausted, the packet would be discarded. Each router receives the subtracts courwhen the packet is discarded, and when it becomes zero, the router tects the discarded packets and sends a message, Internet Control Messa Protocol message back to the originating host.
16. How is nine-patch image different from a regular bitmap?
It is a resizable bitmap resource that can be used for backgrounds or other images on the device. The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges a re scaled in one axis, and the middle is scaled in both axes.
17. Explain IP datagram, Fragmentation and MTU?
IP datagram can be used to describe a portion of P data. Each IP datagram has set of fields arranged in an order. The order is specific which helps to decode and read the stream easily. IP datagram has fields like Version, header length, Type of service, Total length, checksum, flag, protocol, Time to live, Identification, source and destination ip address, padding, options and payload.
MTU:- Maximum Transmission Unit is the size of the largest packet that a communication protocol can pass. The size can be fixed by some standard or decided at the time of connection Fragmentation is a process of breaking the IP packets into smaller pieces. Fragmentatio n is needed when the datagram is larger than the MTU. Each fragment becomes a datagram in itself and transmitted independently from source. When received by destination they are reassembled.
18. Explain about the exceptions of Android?
The following are the exceptions that are supported by allow:
* InflateException : When an error conditions are occurred, this exception is thrown
* Surface.Out0fResourceException: When a surface is not created or resized, this extion is thrown
* SurfaceHolder.BadSurface TypeException: This exception is thrown from the lockCanvas()
method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS I WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.Layou tParamstoken.
19. Describe Android Application Architecture?
Android Application Architecture has the following components:
* Services ? like Network Operation
* Intent – To perform inter-communication between activities or services
* Resource Externalization – such as strings and graphics
* Notification signaling users – light, sound, icon, notification, dialog etc.
• Content Providers – They share data between applications
20. What are the advantages of Android?
The following are the advantages of Android:
‘The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like AT&T and Orange will be broken by Google Android.
‘Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized
Innovative products like the location -aware services, location of a nearbyconvenience Store etc., are some of the additive facilities in Android.
How to select more than one option from list in android xml file? Give an example. Specify android id, layout height and width as depicted in the following example.
21. Explain about the exceptions of Android?
The followng are the exceptions that are supportedAndroid
* InflateException: When an error conditions are occurred, this exception is thrown
Surface.OutOfResourceException: When a surface is not created or resized, this exception 1hro
*SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACETYPE_PUSH_BUFFERS
• WindowManager.BadTokenException: This exception is thrown at the time of tryrng to add view an invalid WindowManager.LayoutParamstoken.
22. What are the features of Android?
*components can be reused and replaced by the application framework.
*Optimized DVM for mobile devices
*SQLite enables to store the data in a structured manner.
*Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies
*The development is a combination of a devi ce emulator, debugging tools, memory profiling and plug -in for Eclipse IDE.
23. What are the differences between a domain] workgroup?
In a domain, one or more computer can be a server to manage the network. On the other hand in a orkgroup all computers are peers having no control on each other. In a domain.
user doesn’t need an account to logon on a specific computer if an account is available on the domain. In a work group user needs to have an account for every computer.
In a domain, Computers can be o n different local networks. In a work group all computers needs to be a part of the same local network.
24. What is needed to make a multiple choice list with a custom view for each row?
Multiple choice list can be viewed by making the CheckBox android:id va lue be “@android:id Itextl “. That is the ID used by Android for the CheckedTextView in
simplejist_item_multiple_choice.
25. What are the dialog boxes that are supported in android? Explain.
Android supports 4 dialog boxes:
AlertDialog: An alert dialog box supports 0 to 3 buttons and a list of selectable elements, including check boxes and radio buttons. Among the other dialog boxes, the most suggested dialog box is the alert dialog box.
ProgressDialog: This dialog box displays a progr ess wheel or a progress bar. It is an extension of AlertDialog and supports adding buttons.
DatePickerDialog: This dialog box is used for selecting a date by the user.
TimePickerDialog: This dialog box is used for selecting time by the user.
Real Time Android Questions & Answers
- Ab Initio
- ABAP DATA DICTIONARY Interview Questions
- Accountant Interview Questions
- Accounting Clerk Interview Questions
- Accounting Interview Questions
- Accounts Payable Interview Questions
- Accounts Receivable Interview Questions
- Active Directory Interview Questions
- Adabas Interview Questions
- Advanced JAVA Interview Questions
- Advertising Interview Questions
- Agile Testing Interview Questions
- Amazon Interview Questions
- Android Interview Questions
- Angular 2 Interview Questions
- Angular 4 Interview Questions
- Angular 7 Interview Questions
- Angular 8 Interview Questions
- Ansible Interview Questions
- Apache and Scala Interview Questions
- Apache Cassandra Interview Questions
- APPLETS INTERVIEW QUESTIONS
- Application Packaging Interview Questions
- AS-400 Interview Questions
- ASA Firewall Interview Questions
- ASP.Net Interview Questions
- Assistant Principal Interview Questions
- Audit Interview Questions
- Aura Framework Interview Questions
- AUTOCAD LAB VIVA Questions
- AWS Architect Interview Questions
- AWS Interview Questions
- Azure Interview Questions
- Bank Interview Questions
- Banking Interview Questions
- Beauty Pageant Interview Questions
- Behavior Based Interview Questions
- Behavioral Interview Questions
- BGP Interview Questions
- Big Data Interview Questions
- BlackBerry Interview Questions
- Bluetooth Interview Questions
- BO DESIGNER INTERVIEW QUESTIONS
- Bookkeeper Interview Questions
- Bootstrap 3 Interview Questions
- Bootstrap 4 Interview Questions
- Bootstrap Interview Questions
- BPEL Interview Questions
- BPO Interview Questions
- Brand Management Interview Questions
- Business Analyst Interview Questions
- BUSINESS INTELLIGENCE INTERVIEW QUESTIONS
- Business Law Interview Questions
- C Interview Questions
- C Sharp Interview Questions
- C++ Interview Questions
- CakePHP Interview Questions
- Call Center Interview Questions
- Caregiver Interview Questions
- CCNA Interview Questions
- CICS Interview Questions
- Citizenship Interview Questions
- Civil Engineering Interview Questions
- Client Server Interview Questions
- Cloud Computing Interview Questions
- COBOL Interview Questions
- Codeigniter Interview Questions
- Cognos Interview Questions
- ColdFusion Interview Questions
- College Interview Questions
- Common Job Interview Questions
- competency-based-interview-questions
- Concrete Technology LAB VIVA Questions
- Content Writer Interview Questions
- Core JAVA Interview Questions
- Core Java Multiple choice Questions
- Cost Accounting Interview Questions
- Couchbase Interview Questions
- Couchdb Interview Questions
- CRM Interview Questions
- CSS3 Interview Questions
- Customer Service Interview Questions
- Data Analyst Interview Questions
- Data Mining Interview Questions
- Data Modelling Interview Questions
- Data Science Interview Questions
- Data Structure Interview Questions
- Data Warehousing Interview Questions
- Database Architecture Interview Questions
- Database Interview Questions
- Database Testing Interview Questions
- Datastage Interview Questions
- DB2 Interview Questions
- DBMS Interview Questions
- Dbvisualizer Interview Questions
- Defence Interview Questions
- DESIGN of MASONRY STRUCTURES Interview Questions
- DevOps Interview Questions
- Diversity Interview Questions
- Django Interview Questions
- Docker Interview Questions
- Drupal Interview Questions
- Economics Interview Questions
- EDI Interview Questions
- Education Teacher Interview Questions
- EJB Interview Questions
- Elasticsearch Interview Questions
- Elementary Librarian Interview Questions
- ELEMENTS of REMOTE SENSING Interview Questions
- Elixir Interview Questions
- Embedded Systems Interview Questions
- Employment Interview Questions
- ENGINEERING ECONOMICS Interview Questions
- ENGINEERING GRAPHICS LAB VIVA Questions
- Engineering Interview Questions
- ENGINEERING MECHANICS LAB VIVA Questions
- ES6 Interview Questions
- ESTIMATING and COSTING Interview Questions
- ETL Testing Interview Questions
- Excel Interview Questions
- Exit Interview Questions
- Facebook Interview Questions
- Fat Free Framework Interview Questions
- File Maker Interview Questions
- Financial Analyst Interview Questions
- Financial Management Interview Questions
- Firefighter Interview Questions
- Fixed Assets Interview Questions
- FLASH Interview Questions
- Food Service Worker Interview Questions
- Fortran Interview Questions
- Graphic Designer Interview Questions
- Healthcare Interview Questions
- Help Desk Interview Questions
- Hibernate Interview Questions
- Hotel Management Interview Questions
- Housekeeping Interview Questions
- HTML 5 Interview Questions
- HTML Interview Questions
- HVAC Engineer Interview Questions
- HVAC Interview Questions and Answers
- Hyperion Interview Questions
- IBM JCL Interview Questions
- IBM MainFrame Interview Questions
- IBM Rexx Interview Questions
- Informatica Interview Questions
- Internship Interview Questions
- Iphone Apps Interview Questions
- IT Help Desk Interview Questions
- ITIL Interview Questions
- J2EE Interview Questions
- J2EE Multiple choice Questions
- J2ME Interview Questions
- J2ME Multiple choice Questions
- J2SE Interview Questions
- Java Applet Interview Questions
- Java Beans Interview Questions
- Java Script Interview Questions
- Java Springs Multiple choice Questions
- Java Swing Interview Questions
- Java Web development Interview Questions
- JBoss Interview Questions
- JDBC Interview Questions
- JDBC Multiple choice Questions
- JMS Interview Questions
- Joomla Interview Questions
- JQuery Interview Questions
- JQuery Multiple choice Questions
- JSP Interview Questions
- JSP Multiple choice Questions
- JVM Interview Questions
- Librarian Interview Questions
- Linux Administrator Interview Questions
- Linux FTP Interview Questions
- Linux Interview Questions
- Linux Multiple choice Questions
- LoadRunner Interview Questions
- Log4j Interview Questions
- Mainframe Application Testing Interview Questions
- Manual Testing Interview Questions
- Marketing Interview Questions
- Marketing Manager Interview Questions
- Marketing Research Interview Questions
- MBA Admission Interview Questions
- McDonalds Interview Questions
- Medical Billing Interview Questions
- Medical School Interview Questions
- Memory Management Interview Questions
- Modularization Interview Questions
- MongoDB Interview Questions
- MS Access Interview Questions
- MS Word Interview Questions
- MS Word Multiple choice Questions
- MSBI Interview Questions
- MSBI Multiple choice Questions
- MySQL Interview Questions
- MySQL Multiple choice Questions
- Network Security Interview Questions
- Network Security Multiple Choice Questions
- Networking Interview Questions
- Nurse Practitioner Interview Questions
- Nursing Interview Questions
- OBIEE Multiple Choice Questions
- OLAP Interview Questions
- OOPS Interview Questions
- Operating System Interview Questions
- Operating System Multiple choice Questions
- Oracle 10g Interview Questions
- Oracle 11g Interview Questions
- Oracle Apps Interview Questions
- Oracle AR Interview Questions
- Oracle Backup Recovery Interview Questions
- Oracle D2K Interview Questions
- Oracle Database Interview Questions
- Oracle DBA Interview Questions
- Oracle Developer Interview Questions
- Oracle ETL Interview Questions
- ORACLE HRMS Interview Questions
- Oracle Interview Questions
- Paralegal Interview Questions
- Pascal Interview Questions
- Payroll Interview Questions
- PEGA Interview Questions
- PEGA Multiple Choice Questions
- PeopleSoft Interview Questions
- Perl Scripting Interview Questions
- Perl Scripting Multiple choice Questions
- Pharmaceutical Interview Questions
- Pharmacist Interview Questions
- Phone Interview Questions
- PHP Interview Questions
- PHP JQuery Interview Questions
- PHP Multiple choice Questions
- PL/SQL Interview Questions
- PL/SQL Multiple Choice Questions
- Preschool Teacher Interview Questions
- Principles of Management Interview Questions
- Project Management Interview Questions
- Project Manager Interview Questions
- Purchasing interview Questions
- Python Interview Questions
- QA Analyst Interview Questions
- QA Interview Questions
- QC Interview Questions
- QTP Interview Questions
- RCC STRUCTURE DESIGN Interview Questions
- RDBMS Interview Questions
- React js Interview Questions
- Receptionist Interview Questions
- Reportnet Interview Questions
- RequireJs Interview Questions
- Research Methodology Interview Questions
- Restaurant Interview Questions
- RESTful Web Services Interview Questions
- Retail Interview Questions
- Robotic Process Automation (rpa) Interview Questions
- RPA Blue Prism Interview Questions
- RPM Interview Questions
- Ruby Interview Questions
- Ruby on Rails Interview Questions
- Ruby on Rails Multiple choice Questions
- Sales Interview Questions
- Sales Manager Interview Questions
- Salesforce Lightning Interview Questions
- SAP ABAP DATA DICTIONARY Interview Questions
- SAP ABAP Interview Questions
- SAP ABAP Multiple choice Questions
- SAP ABAP Scripts Interview Questions
- SAP BI Interview Questions
- SAP BO Interview Questions
- SAP BO Multiple choice Questions
- SAP BW Interview Questions
- SAP CRM Interview Questions
- SAP ESS MSS Interview Questions
- SAP FICO Interview Questions
- SAP FICO MCQs
- SAP HANA Interview Questions
- SAP HR Interview Questions
- SAP MM Interview Questions
- SAP MM Multiple choice Questions
- SAP PM Interview Questions
- SAP PP Interview Questions
- SAP QM Interview Questions
- SAP R/3 ARCHITECTURE Questions
- SAP SD Interview Questions
- SAP SECURITY INTERVIEW QUESTIONS
- SAP SRM Interview Questions
- SAP Testing Interview Questions
- SAP Testing Multiple choice Questions
- SAP Web Dynpro Interview Questions
- SAP WM Interview Questions
- SAP Workflow Interview Questions
- SAS Interview Questions
- SAS Programming Interview Questions
- Scholarship Interview Questions
- School Counselor Interview Questions
- Search Engine Marketing Interview Questions
- Security Officer Interview Questions
- Selenium Interview Questions
- Selenium Multiple choice Questions
- Sencha Touch Interview Questions
- SEO Interview Questions
- SEO Multiple choice Questions
- Servlets Interview Questions
- SharePoint Interview Questions
- Sharepoint Multiple choice Questions
- Shell Scripting Interview Questions
- SI Units Interview Questions
- Siebel CRM Interview Questions
- Siebel CRM Multiple choice Questions
- Siebel Interview Questions
- Silktest Interview Questions
- SOAP Interview Questions
- Social Worker Interview Questions
- Software Developer Interview Questions
- Software Engineering Interview Questions
- Spring MVC Interview Questions
- SQL Server 2008 Interview Questions
- SQL Server DBA Interview Questions
- SQL Server Interview Questions
- SQL Server Multiple choice Questions
- SSAS Interview Questions
- SSIS Interview Questions
- SSRS Developer Interview Questions
- SSRS Interview Questions
- Structural Design Specification Interview Questions
- Struts Interview Questions
- SVG Interview Questions
- Swings Interview Questions
- Tally Interview Questions
- Team Leader Interview Questions
- Technical Support Interview Questions
- Teradata Interview Questions
- Teradata Objective Questions and Answers
- THEORY of STRUCTURES Interview Questions
- Tibco Interview Questions
- TOEFL Interview Questions
- Training and Development Interview Questions
- TurboGears Framework Interview Questions
- TypeScript Interview Questions
- UiPath Interview Questions
- UML Interview Questions
- Uncategorized
- UNIX Interview Questions
- UNIX Multiple choice Questions
- VBA for Excel Interview Questions
- VBScript Interview Questions
- VSAM Interview Questions
- WASTE WATER Engineering Interview Questions
- WATER SUPPLY Engineering Interview Questions
- WCF Interview Questions
- WCF Multiple choice Questions
- Web Designing Interview Questions
- Web Developer Interview Questions
- Web icon Interview Questions
- Web Marketing Interview Questions
- Web Services Testing Interview Questions
- Web2py Framework Interview Questions
- Webdynpro MCQs
- Website Development Interview Questions
- Websphere Interview Questions
- WinRunner Interview Questions
- WordPress Objective Questions
- WPF Interview Questions
- WPF Multiple choice Questions
- Xamarin Interview Questions
- XHTML Interview Questions
- XML Interview Questions
- XML Multiple Choice Questions
- XSL Interview Questions
- XSLT Interview Questions
- Yii PHP Framework Interview Questions
- YUM Interview Questions
- Zend Framework Interview Questions
- Zend Framework Multiple choice Questions