Vous êtes sur la page 1sur 26

Android Application Development

Sevya It. Pvt. Ltd., Hyderabad Duration : 5 Months 14 Days Presentation By Akash Khaitan Id: 08DDCS547 FST,ICFAI University

Project Goals
Android Application development using Android SDK & Java Platform
Understanding the lifecycle of Application Development Getting full control over User Interface, Navigation, Multimedia Game Development & Web App Development in Android

Introduction
Android is a software stack for mobile devices that includes an operating system. The Android SDK provides the tools and APIs necessary for developing applications using Java

Contents
Architecture
Activity & Services

User Interface , Menus ,Navigation


Notifications

Data Storage Techniques


Multimedia Game Development Web Application Development

Architecture
Android architecture consists of
Kernal

Libraries
Runtime

FrameWork
Application

Activity & Services


An Activity is an application component that provides a screen with which users can interact A service do not provide a screen but runs in the background and provides updates to the UI thread

User Interface
The User Interface design is one of the most important component in Android Application Development. It consists Of : Layout Managers TextView, EditText

Buttons, RadioButton
ImageView, Bitmap

WebView

Layout Managers
Linear Layout

Relative Layout
Frame Layout

Table layout

Menus

Provides a familiar and consistent user experience


One should use the Menu APIs to present user actions and other options in your activities.

Navigation
Provides a better user experience
Makes the app more user intuitive The Navigation components consists of

Tabs
Lists

Tabs
Presenting different Screens in a single page using tabs

Steps Involved in creating Tab


Create separate activities Create layouts for activities Define a layout for main tab activity In the tab activity, bind all the activities to tab host using intents

Lists
A user can create a simple list and custom list in android
Adapters are used here to bind the data with the layout

Notification
Several types of situations may arise that require you to notify the user about an event that occurs in application. Some events require the user to respond and others do not.
Types of Notification in android are :

Toast Notification
StatusBar Notification Dialogs

Toast Notification
Toast.makeText(context,string,duration). show();
The upper line creates a Toast which takes context,desired string , time and displays the toast

Custom Toast can be created with specified layout

StatusBar Notification
A status bar notification should be used for any case in which a background service needs to alert the user about an event that requires a response.
Notification Manger is used for status bar notification

Dialogs
Alert Dialog

Dialog with Buttons


Dialogs With List

Dialog with progress Bar


Custom Dialogs To show a dialog show() method

Is used

Data Storage Techniques


Each and every application requires data to be stored for further use
Android Provides following data storage techniques Shared Preferences Internal Storage External Storage SQLite Databases

Network Connection

Shared Preferences
Writing to Shared Preferences
SharedPreferences settings = getSharedPreferences("Mypref", 0); SharedPreferences.Editor editor = settings.edit(); editor.putString("text", text.getText().toString()); editor.commit();

Retrieving from Shared Preferences


SharedPreferences settings = getSharedPreferences("Mypref", 0); String temp=settings.getString("text", "Unable to retrieve");

Internal Storage
Writing to Internal Storage openFileOutput() returns FileOutputStream object Write to the file with write() Close the stream with close() Retrieving from Internal Storage Call openFileInput() returns a FileInputStream. Read bytes from the file with read().

Then close the stream with close().

External Storage
Get the External storage
File sdCard = Environment.getExternalStorageDirectory (); Write to External Storage Retrieve from External Storage This are available to all the application as they act as global data

SQLite Database
Create a class which extends SQLiteOpenHelper
Create the database and define its schema in the class Get the writable database by calling getWritableDatabase(); Get the readable database getWritableDatabase();

Multimedia
The Android multimedia framework includes support for capturing and playing audio, video and images in a variety of common media types
Audio Playback
MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.sound_file_1); mediaPlayer.start(); // no need to call prepare(); create() does that for you

Tone Generator
tone = new ToneGenerator(AudioManager.STREAM_DTMF, 100); Tone Generator Object tone.startTone(int tonetype,int duration in Ms); type value and duration //Start tone with tone //Create

Mobile Web Applications


Mobile web apps provide flexibility and code reusability. The web apps made for desktop application can easily be converted to mobile web apps with minimum efforts in doing the same. Languages: HTML, CSS, JAVASCRIPT, JQUERY

Features that mobile apps should have are:


Linking with native libraries (Ex :camera, etc.) UI Look and feel like native application (Buttons, Labels, etc.) Navigation like native application (Screen sliding, orientations, etc.)

Game Development
Android supports game development, as a result of this several games can be found in android Play. Some types of games in the android are:
Accelerometer Based Games

Simple Canvas Based Games


3d Games

Conclusion
My 5 and half months of training at Sevya provided me thorough knowledge of Mobile Application Development including Blackberry, Android and J2ME. It helped me in understanding the complete life cycle of application development which starts from analytical phase followed by documentation phase and on verification goes to implementation phase. In my internship I worked in a team with Mr. Vineet Agarwal and Mr. Kumar Raja Donthamsetti and developed some applications with reach controls and also some Gaming applications which I always dreamed off. I got an opportunity to work as a graphic designer for which I used Open Source Gimp. I also got an opportunity to prepare some documentation and user manuals for the ongoing projects of Sevya.

References
Android Developers: (http://developer.android.com)
Google: (http://google.co.in) Wikipedia: (http://www.wikipedia.org/)

Mr. Narasayya Donepudi(Co-Founder at Sevya Multimedia)


Mr. Kumar Raja Donthamsetti (Associate Software Engineer at Sevya Multimedia) Mr. Vineet Agarwal (Software Engineer at Sevya Multimedia)

Vous aimerez peut-être aussi