Configuring Android Development Environment
Configuring Android Development Environment
Android Development
Environment
B.Bhuvaneswaran
Assistant Professor (SS)
Department of Computer Science & Engineering
Rajalakshmi Engineering College
Thandalam
Chennai 602 105
[email protected]
Requirements
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eclipse + ADT
SDK
developer.android.com/sdk/index.html
package Explorer
DDMS (Dalvik Debug Monitor Server )
LogCat
Console
Sample Application
1) src folder:
2) bin folder:
4) res folder:
3) Assests folder:
5) value folder:
AndroidManifest.xml file
R.Java and Resource
Assets
Widgets
AndroidManifest.xml file
Every application must have an
AndroidManifest.xml file.
The manifest presents essential
information about the application to the
Android system.
R.Java
The file R.java is an auto-generated file,
that is added to your application, by the
Android plug-in.
This file contains pointers into the
drawable, layout, and values directories.
You should never modify this file directly.
You will be only referencing R.java in most
of your applications.
Resources
Resources
Assets
Assets provide a way to include arbitrary
files like text, xml,fonts, music, and
video, in your application.
If you try to include these files as
'resources', Android will process them into
its resource system, and you will not be
able to get the raw data.
If you want to access data untouched,
using Assets is one way to do it.
InputStream is = getAssets().open("text.txt");
Widgets
Android widgets can, bring lot of useful
information directly to your home screen,
without the need to start the application.
Widgets should be viewed as mini
applications that sit on your home screen.
They display various bits of information
from the main application.
Widget types
1)Information widgets
Weather widgets
2) Collection widgets
ListView widget
B.Bhuvaneswaran, AP (SS) / CSE / REC
Summary
1)
2)
3)
4)
5)
6)
Installation
Creating AVD
Familiarization with Eclipse IDE
Resources
AndroidMenifest.xml
Widgets
References
www.developer.android.com
www.developer.android.com/sdk/index.html