JFDP - Android App Developement Using Java PPT2
JFDP - Android App Developement Using Java PPT2
Development
Developed by Abhishek Bhargava
Introduction
•Welcome to world of Android Application Development!
•Android was acquired by Google in 2005 (yes, Android was a start-up company at
one point),
•This was to ensure that a mobile operating system (OS) could be created and
maintained in an open platform.
•Google continues to pump time and resources into the Android project, which has
already proved to be beneficial.
•As of July 2010, 160,000 Android handsets have been activated daily, which is
good considering that handsets have been available only since October 2008.
•That’s less than two years, and Android has already made a huge impact!
•It has never been easier for a developer to be able to make money on his own.
•Android users may not know who you are, but they know what Google is, and they
trust Google. Because your app resides in the Android Market — which Google
controls — Google assumes that your application is okay too.
Definition of android.
Android is a Operating System for mobile devices
It includes an basic in-built features, middleware and key applications.
The Android SDK provides the tools and APIs necessary to begin
developing applications on the Android platform using the Java
programming language.
Features of android
Application framework enabling reuse and replacement of components
Dalvik virtual machine optimized for mobile devices
Integrated browser based on the open source WebKit engine
Optimized graphics powered by a custom 2D graphics library; 3D
graphics based on the OpenGL ES 1.0 specification (hardware acceleration
optional)
SQLite for structured data storage
Media support for common audio, video, and still image formats (MPEG4,
H.264, MP3, AAC, AMR, JPG, PNG, GIF)
GSM Telephony (hardware dependent)
Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
Camera, GPS, compass, and accelerometer (hardware dependent)
Rich development environment including a device emulator, tools for
debugging, memory and performance profiling, and a plugin for the Eclipse IDE
Open platform
•The Android operating system is open platform, meaning that it’s not tied to one
hardware manufacturer and/or one provider.
•As you can imagine, the openness of Android is allowing it to gain market share
quickly.
•All hardware manufacturers and providers can make and sell Android devices.
•The Android source code is available at http://source.android.com for you to
view and/or modify.
•Nothing is holding you back from digging into the source code to see how a
certain task is handled.
•The open-source code allows phone manufacturers to create custom user
interfaces (UIs) and add built-in features to some devices.
•This also puts all developers on an even playing field. Everyone can access the
raw Android source code.
Cross-compatibility & Mash-up capability
Android can run on many devices with different screen sizes and resolutions.
Besides being cross-compatible, Android comes with the tools that help you
develop cross-compatible applications. Google allows your apps to run only
on compatible devices. If your app requires a front-facing camera, for example,
only phones with a front-facing camera will be able to see your app in the
Android Market. This arrangement is known as feature detection.
JDWP debugger The Dalvik VM (Virtual Machine) supports the JDWP protocol to
allow debuggers to attach to a VM. Each application runs in a VM and exposes a
unique port that you can attach a debugger to via DDMS. If you want to debug
multiple applications, attaching to each port might become tedious, so DDMS
provides a port forwarding feature that can forward a specific VM's debugging
port to port 8700. You can switch freely from application to application by
highlighting it in the Devices tab of DDMS. DDMS forwards the appropriate port to
port 8700. Most modern Java IDEs include a JDWP debugger, or you can use a
command line debugger such as jdb.
Debugging Environment
Figure 1 shows how the various debugging tools work together in a typical debugging
environment.
ERRORS:-
Compile time error is any type of error that prevent a java program
compile like a syntax error, a class not found, a bad file name for the
defined class, a possible loss of precision when you are mixing different
java data types and so on.
A runtime error means an error which happens, while the program is running.
To deal with this kind of errors java define Exceptions. Exceptions are
objects represents an abnormal condition in the flow of the program. It can
be either checked or unchecked.