Thursday 28 March 2013

Some interview questions and answer and concepts

WHAT IS ANDROID?

Google + OHA (Open Handset Alliance)
The first truly open and comprehensive platform for mobile devices, all of the software to run a mobile
phone but without the proprietary obstacles that have hindered mobile innovation.
  • Linux OS kernel
  • Java programming
  • Open source libraries: SQLite, WebKit, OpenGL

ANDROID SDK FEATURE
GSM, EDGE, and 3G networks, WiFi, Bluetooth
  • API Support for Bluetoothe, WiFi Ad hoc mode
Libraries
  • Media, SQLite, WebKit, SSL
Hardware control:
  • Accelerometer, compass, microphone, camera, GPS
  • touch screen, power
Location-based service, map (Google API) & Facebook ,gmail and Twitter Support(Api's)

TOOLS

The Android Emulator
  • Implementation of the Android virtual machine
  • Test and debug your android applications.
Dalvik Debug Monitoring Service (DDMS)
  • Monitor and Control the Dalvik virtual machines
  • Logcat (see logged msgs)
Android Debug Bridge (ADB)
  • Manage the state of an emulator instance or Android-powered device
  • Copy files, install compiled application packages, and run shell commands.
Traceview
  • Graphical analysis tool for viewing the trace logs from your Android application
  • Debug your application and profile its performance
MkSDCard
  • Creates an SDCard disk image

Tools that are found in android Sdk are:
  1. Sdk Tools----Platform Independent tools
  2. Platform-tools

The tools are classified into two groups: SDK tools and platform tools. SDK tools are platform independent and are required no matter which Android platform you are developing on. Platform tools are customized to support the features of the latest Android platform.

SDK Tools is a downloadable component for the Android SDK. It includes the complete set of development and debugging tools for the Android SDK like emulator, sdcard, sqlite and apk builder etc.. Where as Platform-tools are used to support the features for the current android platform including adb which is acting like a bridge to communicate with emulator or device.

Android Sdk Tools
Android SDK Manager (android sdk)
AVD Manager (android avd) the emulator (emulator)
Dalvik Debug Monitor Server (ddms)
SqliteManager
Apk Builder

Platform-tools
Aidl, aapt, dexdump, and dx are generally called by android ADT or android build tool

Android Debug Bridge (ADB)

The Android Debug Bridge (ADB) is a client-server program used in Android application development. The Android Debug-Bridge is part of the Android SDK and is made up of three components: a client, a daemon, and a server. It is used to manage either an emulator instance or an actual Android device.
ADB ia android Platform tool that lets u communicate with emulator or actual device.

BY Android.developer:
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a part of android Sdk.It is a client-server program that includes three components:
  • A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
  • A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
  • A daemon, which runs as a background process on each emulator or device instance.

NOTE: You can find the adb tool in <sdk>/platform-tools/.


DDMS
The Dalvik Debug Monitor Service (DDMS) is a debugging utility that is integrated into Eclipse through the DDMS perspective. The DDMS perspective provides a number of useful features for interacting with emulators and handsets

The features of DDMS are roughly divided into five functional areas:
  • Task management
  • File management
  • Emulator interaction
  • Logging
  • Screen captures(Device -->sceen capture icon)
  • Thread and heap information on the device
  • Devices
  • Navigator
  • Emulator Control
  • Allocation Tracker—Tracking memory allocation to each virtual machine

AVD MANAGER

The AVD Manager provides a graphical user interface in which you can create and manage Android Virtual Devices (AVDs), which are required by the Android Emulator.
You can launch the AVD Manager in one of the following ways:
  • In Eclipse: select Window > AVD Manager, or click the AVD Manager icon in the Eclipse toolbar.
  • In other IDEs: Navigate to your SDK's tools/ directory and execute android avd.

ADT(Android Developer Tool)
ADT (Android Developer Tools) is a plugin for Eclipse that provides a suite of tools that are integrated with the Eclipse IDE


***********************************************************************










No comments:

Post a Comment