Showing posts with label ANDROID. Show all posts
Showing posts with label ANDROID. Show all posts

Sunday, 22 September 2013

Android Questions and Answers | Best Android Interview Questions for experienced pdf for freshers

Android Interview Questions and Answers 1 · Android Interview Questions ...BEST ANDROID INTERVIEW Questions Free PDF Download, Latest Interview Questions ANDROID INTERIEW QUESTIONS AND ANSWERS for experienced pdf for freshers, android interview questions and answers for experienced pdf interview questions and answers for android
 
1. What is android?
  • A.Android is a stack of software for mobile devices which has Operating System, middle ware 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 language byte code which later
  • transforms into .dex format files.

2. What are the advantages of Android?

A. 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 nearby convenience store etc., are some of the additive facilities in 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 device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.

3. Explain about the exceptions of Android?

A.The following are the exceptions that are supported by Android
  •  InflateException : When an error conditions are occurred, this exception is thrown
  • Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown
  • SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, wheninvoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS
  • WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid
  • WindowManager.LayoutParamstoken.

4. Describe the APK format.

A.The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and
other files. A project is compiled into a single .apk file.

5. What is .apk extension?

A.The extension for an Android package file, which typically contains all of the files related to a single Android application. The file itself is a compressed collection of an AndroidManifest.xml file, application code (.dexfiles), resource files, and other files. A project is compiled into a single .apk file.

6. What is .dex extension?

A.Android programs are compiled into .dex (Dalvik Executable) files, which are in turn zipped into a single
.apk file on the device. .dex files can be created by automatically translating compiled applications written in
the Java programming language.

7. Explain the Architecture of Android ?

A. Top -> Applications (Contacts, Browser, Phone, etc) Below Applications -> Application Framework(Activity Manager, Window Manager, Content Providers, ViewSystem, Package manager,
Telephony manager, Resource, Notification, Location managers) Below Application Framework -> System Libraries(Like Sqlite, webkit, SSL, OpenGL, Media Framework etc)
& Android Runtime( Core Libraries and DVM).
Atlast Last -> Linux Kernel (which composed of drivers like display, camera etc.)

8. What is an activity?

A. A single screen in an application, with supporting Java code.
An activity presents a visual user interface for one focused endeavor the user can undertake.
For example, an activity might present a list of menu items users can choose from or it might display
photographs along with their captions.

9. What is a service?

A.A service doesn’t have a visual user interface, but rather runs in the background for an indefinite period of
time.For example, a service might play background music as the user attends to other matters, or it might fetch data over the network or calculate something and provide the result to activities that need it.Each service extends theService base class.

10. How to Remove Desktop icons and Widgets?

A. Press and Hold the icon or widget. The phone will vibrate and on the bottom of the phone you will see
anoption to remove. While still holding the icon or widget drag it to the remove button. Once remove turns reddrop the item and it is gone

11. Describe a real time scenario where android can be used?

A .Imagine a situation that you are in a country where no one understands the language you speak and you cannot read or write. However, you have mobile phone with you.

12. How to select more than one option from list in android xml file?

A. Give an example.
Specify android id, layout height and width as depicted in the following example.

13. What languages does Android support for application development?

A.Android applications are written using the Java programming language.

14. Describe Android Application Architecture?

A.Android Application Architecture has the following components:
• Services – like N
• Intent – To perform inter-communication network Operation between activities or services
• Resource Externalization – such as strings and graphics
• Notification signaling users – light, sound, icon, notification, dialog etc

15. What is the Android Open Source Project?

A. We use the phrase “Android Open Source Project” or “AOSP” to refer to the people, the processes, and the source code that make up Android.

16. Why did we open the Android source code?

A .Google started the Android project in response to our own experiences launching mobile apps. We wanted to make sure that there would always be an open platform available for carriers, OEMs, and developers to use to make their innovative ideas a reality. We also wanted to make sure that there was no central point of failure, so that no single industry player could restrict or control the innovations of any other. The single most important goal of the Android Open-Source Project (AOSP) is to make sure that the open-source Android software is implemented as widely and compatibly as possible, to everyone’s benefit. 


17. What is included in Mono for Android?



A. Mono for Android consists of the core Mono runtime, the Mono for Android bindings to the native Android APIs, a Visual Studio 2010 plugin to develop Android applications and an SDK that contains the tools to build, debug and deploy your applicationsOur Visual Studio 2010 plugin allows developers to use Visual Studio 2010 to develop, debug and deploy their applications to an Android simulator, an Android device, or the Android Application Store.Our MonoDevelop IDE also ships an addin to support Mono for Android development.

Read more...

2013 Android Interview Questions and Answers For Java Peoples - Freshers, Experienced

Android Interview Questions and Answers

Android Interview Questions and Answers for java people , In This blog I Saved Best Android Interview Questions and Answers with pdf download for experienced 1+, 2+, 3+, 5+ and all android peoples, ANDROID BEST INTERVIEW QUESTIONS WITH ANSWERS PDF DOWNLOAD ONLINE

Android Interview Questions and Answers-1

Android First Step:

Before you start this Session, be sure you have your development environment set up. You need to:

Basics Requirements:
  1. Download the Android SDK.
  2. Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE).
  3. Download the latest SDK tools and platforms using the SDK Manager.
If you haven't already done these tasks, start by downloading the Android SDK and following the install steps. Once you've finished the setup, you're ready to begin this class.

i) What is android ? What are the features of Android?

Android is a stack of software for mobile devices which has Operating System, middle ware and some key applications..

  1. Components can be reused and replaced by the application framework.
  2. Optimized DVM for mobile devices
  3. SQLite enables to store the data in a structured manner.
  4. Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies
  5. The development is a combination of a device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.

ii) Why to use Android?

1. Multitasking

"Multitasking" on iOS is a joke. I'm speaking right now from the perspective of a user, but trust me, I also truly know this, having been in the shoes of a developer.

Notifications are horribly presented in modal dialogs; in situations where I have a large number of notifications, usually all but the last one shown to me are lost.

I also desperately long for an IM client which I can use on my IPad which I can naturally interact with while using other apps.

No such app exists since all the apps are forced to go through the cumbersome notification system. On Android, as in a desktop operating system, applications can truly run in the background; on Android, IM can be almost indistinguishable from texting (which is coincidentally also better than iOS).

2. Intents
Android is an intent based operating system. What this means from a user's perspective is a richer more deeply integrated experience.

If I am browsing the web and click on a link to a product on Amazon.com, the context will switch and the product will be opened in the Amazon app.

On iOS, clicking that link would just result in the link being opened in the browser (often times losing the context of the originating application).

Android allows apps to have a deeper and more natural hook into the operating system and user experience. For example, in the coming years, when Google Voice finally gets a true VOIP client, it will be able to seamlessly replace the default calling application.

3. Back Button


The back button is a killer feature and is way more than just a physical button. The android operating system is essentially stack based.

Going from the above example of clicking on an Amazon product link: after the Amazon app is opened, I can intuitively press the back button to return to the application from which I clicked the link.

I cannot count the number of situations on iOS where I lose a retrievable context of where I was inside of an application by clicking on a link.

Nor can I count the number of applications which pop open browser dialogs when you click on a link as a hack to fix this. Imagine how ridiculous it would be if it was the norm for desktop applications to all use an embedded browser. Imagine how unusable it would be.

The closest equivalent on iOS for the back button (that I know of) is double tapping the home button (or four finger swiping) to get a list of the most recent apps and then clicking on the app you last used. Lots of users don't even know you can do this.

The menu button on Android is also very convenient (although not as vital) and saves lots of prime mobile screen real estate.
 
4. Apps

As a user, I never need to buy an application. Moreover and surprisingly, there are many apps on Android that simply have no equivalent on iOS.

If I want to use instant messaging, free apps exist. This is the status quo. Not so on iOS. Also, there is a GMail application which actually has an intuitive interface.

I am shocked by tech-savy people who use the iOS mail application with their GMail account in an outlook-like fashion.

Things like Wifi and USB tethering are also built in to the Android operating system.
 

5. Navigation

Newer version of android have a turn by turn navigation application by Google which uses data from Google Maps.

Although some might consider this a smaller feature, this is hands down the best navigation application I have used and has rendered my Garmin navigation obsolete.

I use this all the time. There is no equivalent for iOS, even though some apps exist in the app store with double digit price tags.


iii) What are the advantages of Android?
The following are the advantages of Android:
1) 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


iv) What is the TTL (Time to Live)? Why is it required?


Time to live (TTL) is a mechanism that limits the lifespan of data in a computer or network. TTL may be implemented as a counter or timestamp attached to or embedded in the data.

Once the prescribed event count or timespan has elapsed, data is discarded. In computer networking, TTL prevents a data packet from circulating indefinitely. In computing applications,

TTL is used to improve performance of caching or improve privacy.


v) What is AndroidManifest.xml ?


Manifest file for an android application is a resource file which contains all the details needed by the android system about the application.

It is a key file that works as a bridge between the android developer and the android platform.

It helps the developer to pass on functionality and requirements of our application to Android.

This is an xml file which must be named as AndroidManifest.xml and placed at application root. Every Android app must have AndroidManifest.xml file.

AndroidManifest.xml allows us to define, The packages, API, libraries needed for the application.
Basic building blocks of application like activities, services and etc.

Details about permissions.Set of classes needed before launch.


vi) What are the key components of Android Architecture?
 
Android Architecture consists of 4 key components:
  1. Linux Kernel
  2. Libraries
  3. Android Framework
  4. Android Applications

vi) What do you know about Intents in Android?

 
  • Notification messages to the user from an Android enabled device can be displayed using Intents. 
  • The users can respond to intents.There are two types of Intents - Explicit Intent, Implicit Intent.







Read more...

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP