Professional Documents
Culture Documents
Android
- Nishanth
What is Android?
• Android is a software stack for mobile
devices that includes an operating system,
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.
What is Android?
Developers can create applications for the
platform using the Android SDK.
Applications are written using the Java
programming language and run on Dalvik, a
custom virtual machine designed for
embedded use, which runs on top of a
Linux kernel.
Features
•
Application framework enabling reuse and replacement of components
•
Media support for common audio, video, and still image formats
(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
• Every Android application runs in its own process, with its own
instance of the Dalvik virtual machine.
• Dalvik has been written so that a device can run multiple VMs
efficiently.
Android Runtime
It just doesn’t compile the java code into java bytecode but
instead Dalvik bytecode (.dex)
Application Framework
The compiled Java code — along with any data and resource files required by the
application — is bundled by the aapt tool into an Android package, an archive file
marked by an .apk suffix
. This file is the vehicle for distributing the application and installing it on mobile
devices; it's the file users download to their devices. All the code in a single .apk
file is considered to be one application.
•
Each process has its own Java virtual machine (VM), so application
code runs in isolation from the code of all other applications.
It declares which permissions the application must have in order to access protected
parts of the API and interact with other applications.
It also declares the permissions that others are required to have in order to
interact with the application's components.
It lists the Instrumentation classes that provide profiling and other information as
the application is running. These declarations are present in the manifest only while the
application is being developed and tested; they're removed before the application is
published.
It declares the minimum level of the Android API that the application
requires.
In general, these are external elements that you want to include and
reference within your application, like images, audio, video, text strings,
layouts, themes, etc.
UI Guideliness
UI Guideliness
Preparing to Publish: A Checklist
Before you consider your application ready for release:
3. Register for a Maps API Key, if your application is using MapView elements
http://market.android.com/publish
If you plan to publish your application on Android Market, you must make sure that it
meets the requirements listed below, which are enforced by the Market server when
you upload the application.
• Create an AVD
To create an AVD, use the "android" tool provided in
the Android SDK. Open a command prompt or
terminal, navigate to the tools/ directory in the SDK
package and execute:
android create avd --target 2 --name my_avd
Hello, World- Create a New Android Project
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
@Override
super.onCreate(savedInstanceState);
tv.setText("Hello, Android");
setContentView(tv);
}
Thank you !