Questions and Answers. Q.1) Which of the following is the most ^aeuroeresource hungry ^aeuroepart of dealing with activities on android?

Similar documents
CS260 Intro to Java & Android 05.Android UI(Part I)

Syllabus- Java + Android. Java Fundamentals

Android Application Development

Mobile Programming Lecture 1. Getting Started

CS260 Intro to Java & Android 05.Android UI(Part I)

Mobile Application Development Android

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

Android System Architecture. Android Application Fundamentals. Applications in Android. Apps in the Android OS. Program Model 8/31/2015

Introduction to Android Android Smartphone Programming. Outline University of Freiburg. What is Android? Background University of Freiburg.

Android Programming (5 Days)

Introduction to Android Development

XML Tutorial. NOTE: This course is for basic concepts of XML in line with our existing Android Studio project.

Android App Development

Configuring the Android Manifest File

Android Application Development 101. Jason Chen Google I/O 2008

Android App Development. Ahmad Tayeb

ANDROID APPS DEVELOPMENT FOR MOBILE GAME

Lecture 2 Android SDK

Programming Concepts and Skills. Creating an Android Project

Android Development Crash Course

Introduction to Android

Required Core Java for Android application development

MC Android Programming

OWASP German Chapter Stammtisch Initiative/Ruhrpott. Android App Pentest Workshop 101

ANDROID SYLLABUS. Advanced Android

Introduction To Android

Android. Mobile operating system developed by Google A complete stack. Based on the Linux kernel Open source under the Apache 2 license

Android App Development

Developer s overview of the Android platform

application components

INTRODUCTION TO ANDROID

EMBEDDED SYSTEMS PROGRAMMING Application Basics

Programming in Android. Nick Bopp

GUI Design for Android Applications

Android Basics. Android UI Architecture. Android UI 1

Android Online Training

ANDROID APPS (NOW WITH JELLY BEANS!) Jordan Jozwiak November 11, 2012

ECOM 5341 Mobile Computing(Android) Eng.Ruba A. Salamah

Introduction to Android

Android Ecosystem and. Revised v4presenter. What s New

CS378 -Mobile Computing. Anatomy of and Android App and the App Lifecycle

BCA 6. Question Bank

Mobile Application Development - Android

Android App Development. Mr. Michaud ICE Programs Georgia Institute of Technology

Chapter 2 Welcome App

COLLEGE OF ENGINEERING, NASHIK-4

Security model. Marco Ronchetti Università degli Studi di Trento

Software Development & Education Center ANDROID. Application Development

android application development CONTENTS 1.1 INTRODUCTION TO O ANDROID OPERATING SYSTEM... TURES Understanding the Android Software Stack...

Getting started: Installing IDE and SDK. Marco Ronchetti Università degli Studi di Trento

AND-401 Android Certification. The exam is excluded, but we cover and support you in full if you want to sit for the international exam.

Minds-on: Android. Session 1

Pro Android 2. Sayed Y. Hashimi Satya Komatineni Dave Mac Lean. Apress

Beginning Android 4 Application Development

Android Programming Lecture 2 9/7/2011

Around Android. Essential Android features illustrated by a walk through a practical example

Understand applications and their components. activity service broadcast receiver content provider intent AndroidManifest.xml

Mobile Application Development

Applications. Marco Ronchetti Università degli Studi di Trento

Produced by. Mobile Application Development. David Drohan Department of Computing & Mathematics Waterford Institute of Technology

PAPER ON ANDROID ESWAR COLLEGE OF ENGINEERING SUBMITTED BY:

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

CS260 Intro to Java & Android 04.Android Intro

Application Fundamentals

ATC Android Application Development

Introduction to Android development

Praktikum Entwicklung Mediensysteme. Implementing a User Interface

M.C.A. Semester V Subject: - Mobile Computing (650003) Week : 2

Hello World. Lesson 1. Android Developer Fundamentals. Android Developer Fundamentals. Layouts, and. NonCommercial

The World of Android Development

CS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android. Emmanuel Agu

Android Development Tutorial. Yi Huang

Real-Time Embedded Systems

Android" Application Development SAMS. Sams Teach Yourself. Shane Conder. Lauren Darcey. Second Edition

SEVEN ADVANCED ACADEMY

Programming Android UI. J. Serrat Software Design December 2017

Multiple Activities. Many apps have multiple activities

Mobile Computing. Introduction to Android

Programming with Android: System Architecture. Luca Bedogni. Dipartimento di Scienze dell Informazione Università di Bologna

Android Overview. Most of the material in this section comes from

University of Babylon - College of IT SW Dep. - Android Assist. Lect. Wadhah R. Baiee Activities

Lab 1: Getting Started With Android Programming

Android Essentials with Java

Solving an Android Threading Problem

Android. Michael Greifeneder. Image source: Android homepage

Android App Development. Muhammad Sharjeel COMSATS Institute of Information Technology, Lahore

Embedded Systems Programming - PA8001

Android Application Development Course 28 Contact Hours

ANDROID DEVELOPMENT. Course Details

COSC 3P97 Mobile Computing

Androidfp_printOnly.book Page vii Tuesday, October 4, :15 AM. Contents. Before You Begin

Answers to Exercises

Lecture 1 - Introduction to Android

1. What are the key components of Android Architecture? 2. What are the advantages of having an emulator within the Android environment?

IGEEKS TECHNOLOGIES. Software Training Division. Academic Live Projects For BE,ME,MCA,BCA and PHD Students

CS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android Programming. Emmanuel Agu

ITG Software Engineering

Agenda. Overview of Xamarin and Xamarin.Android Xamarin.Android fundamentals Creating a detail screen

SD Module- Android Programming

SHWETANK KUMAR GUPTA Only For Education Purpose

Transcription:

Q.1) Which of the following is the most ^aeuroeresource hungry ^aeuroepart of dealing with activities on android? A. Closing an app. B. Suspending an app C. Opening a new app D. Restoring the most recent app ANSWER : Opening a new app opening a new app is the most resource hungry part of dealing with activities on android. Q.2) How is a simulator different from an emulator? A. Emulator are only used to play old SNES games, simulators are used for software development. B. The emulator is shipped with the android SDK and third party simulators are not. C. The emulator can virtualize sensors and other hardware features, while the simulator cannot D. The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level. ANSWER : The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level. 1. Simulation is the use of modeling to create a controllable, representative stand in for a complex system. Simulations are, by definition, always incomplete. 2. Emulation is the replacement of a real world device with an model at a well defined interface for the purposes of allowing controlled responses from the emulated real world device. The emulation is "complete" if all the interfaces are present, and the resulting observed behavior matches that of the real world device. Q.3) What is an activity? A. A single screen the user sees on the device at one time. B. A message sent among the major building blocks C. A component that runs in the background without any interface. D. Context referring to the application environment. ANSWER : A single screen the user sees on the device at one time. An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Q.4) Application context are independent of the activity life cycle. An application context gets created whenever the first component of this application starts up,regardless of whether that component is an activity,a service,or something else.the application context lives as long as your application is alive.as such it is independent of activity life cycle.so as long as any of the activities,services,providers,or receivers are alive,your application context is around to hold them.once the activity manager terminates alloy her building blocks of your app,it also gets rid of the Page 1

application context because its no longer needed. Q.5) Services have any user interface components. ANSWER : False A Service is an application component that can perform long-running operations in the background and does not provide a user interface. Q.6) The xml file that contains all the text that your application uses. A. Stack.xml B. Text.xml C. Strings.xml D. String.java ANSWER : Strings.xml A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings: 1.String-XML resource that provides a single string. 2.String Array-XML resource that provides an array of strings. 3.Quantity Strings (Plurals)-XML resource that carries different strings for pluralization. All strings are capable of applying some styling markup and formatting arguments. For information about styling and formatting strings, see the section about Formatting and Styling. Q.7) An activity can be thought of as corresponding to what? A. A java project. B. A java class C. A method call D. An object field ANSWER : A java class An activity can be thought of as corresponding to java class. An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may be smaller than the screen and float on top of other windows. Q.8) To create an emulator, you need an AVD.What does it stands for? A. Android virtual display. B. Android virtual device C. Active virtual device D. Application virtual display. ANSWER : Android virtual device An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator. The easiest way to create an AVD is to use the graphical AVD Manager, which you launch from Eclipse by clicking Window > AVD Manager. You can also start the AVD Manager from the command line by calling the android tool with the avd Page 2

options, from the <sdk>/tools/ directory. Q.9) What runs in the background and doesn^aeurtmt have any UI components? A. Intents B. Content providers C. Services D. Applications ANSWER : Services A Service is an application component that can perform long-running operations in the background and does not provide a user interface. Q.10) When an activity doesn^aeurtmt exist in memory it is in. A. Starting state. B. Running state C. Loading state D. Inexistent state. ANSWER : Starting state. When an activity doesn^aeurtmt exist in memory it is in Starting state. Q.11) When the activity is not in focus, but still visible on the screen it is in? A. Running state B. Paused state C. Stopped state D. Destroyed state ANSWER : Paused state As long as the activity is still partially visible but currently not the activity in focus, it remains paused. Q.12) What is contained within the manifest xml file? A. The permission the app requires B. The list of string used in the app. C. The source code D. All other choices. ANSWER : The permission the app requires AndroidManifest.xml is a powerful file in the Android platform that allows you to describe the functionality and requirements of your application to Android. Q.13) There can be only one running activity at a given time. There can be only one running activity at a given time. All others are paused. Q.14) The emulator is identical to running a real phone except when Page 3

emulating/simulating what? A. Telephony B. Applications C. Sensors D. The emulator can emulate/simulate all aspects of smart phone. ANSWER : Sensors The emulator is identical to running a real phone except when emulating/simulating Sensors. Q.15) The emulated device for android. A. Runs the same code base as the actual device, all the way down to the machine layer. B. Is more of a simulator, and acts as a virtual machine for the android device. C. Runs the same code base as the actual device, however at a higher level. D. An imaginary machine built on the hopes and dreams of baby elephants. ANSWER : Runs the same code base as the actual device, all the way down to the machine layer. The emulator lets you develop and test Android applications without using a physical device. The Android emulator is an application that provides a virtual mobile device on which you can run your Android applications. It runs a full Android system stack, down to the kernel level, that includes a set of preinstalled applications (such as the dialer) that you can access from your applications. You can choose what version of the Android system you want to run in the emulator by configuring AVDs, and you can also customize the mobile device skin and key mappings. When launching the emulator and at runtime, you can use a variety of commands and options to control its behavior. Q.16) The R file is a/an generated file. A. Automatically B. Manually C. Emulated D. None of the above. ANSWER : Automatically The R file is an Automatically generated file. android.r.java is not just where XML ids are stored. It also contains access to resources - such as drawables, layouts, strings, arrays, and basically anything you can declare in resources. Personally I find that it is useful when using Eclipse. I can simply type findviewbyid(r.id. and Eclipse will show a tooltip with a list of options to choose from. Q.17) What are intents? A. Intents are messages that are sent among major building blocks. B. Intent trigger activities to being, services to start or stop, or broadcast. C. Intents are asynchronous D. All of these. ANSWER : All of these. An intent is an abstract description of an operation to be performed. It can be used with startactivity to launch an Activity, broadcastintent to send it to any interested BroadcastReceiver components, and startservice(intent) or bindservice(intent, Page 4

ServiceConnection, int) to communicate with a background Service. An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed. Q.18) While developing android applications, developer can test their apps on A. Emulator included in android SDK. B. Physical android phone C. Third-party emulators D. All three options will work. ANSWER : All three options will work. while developing android application, developer can test their apps on emulator, or on android phone or on any third party emulator. It will give same output screen. Q.19) What is contained within the layout xml file? A. Orientations and layouts that specify what the display look like. B. The permissions required by the app. C. The string used in the app. D. The code which is compiled to run the app. ANSWER : Orientations and layouts that specify what the display look like. An Android layout is a class that handles arranging the way its children appear on the screen. Anything that is a View (or inherits from View) can be a child of a layout. All of the layouts inherit from ViewGroup (which inherits from View) so you can nest layouts. You could also create your own custom layout by making a class that inherits from ViewGroup. The standard Layouts are: 1. AbsoluteLayout 2. FrameLayout 3. LinearLayout 4. RelativeLayout 5. TableLayout Q.20) In an implicit intent, the sender specifies the type of receiver. Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it. For example, if you want to show the user a location on a map, you can use an implicit intent to request that another capable app show a specified location on a map. Q.21) The android software development kit (SDK) is all you need to develop applications for android. Page 5

True. The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. Q.22) Which of the following is not a state in the lifecycle of a service? A. Starting B. Running C. Destroyed D. Paused ANSWER : Paused paused is not state in lifecycle of service. Other than that STARTING,RUNNING, DESTROYED are steps in service lifecycle. Q.23) An activity in a stopped state is doing nothing. ANSWER : False The fact that an activity is in a running state doesn^aeurtmt mean it^aeurtms doing much. It could be just sitting there and waiting for user input. Similarly, an activity in a stopped state is not necessarily doing nothing. The state names mostly refer to how active the activity is with respect to user input, in other words, whether an activity is visible, in focus, or not visible at all. Page 6