Android by LAlitha
-
Upload
lally-lalitha -
Category
Services
-
view
85 -
download
0
Transcript of Android by LAlitha
![Page 1: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/1.jpg)
Andy Rubin
![Page 2: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/2.jpg)
What is an Operating System?
What is An Android?
History of Android?
Open Source-Closed Source OS
OHA(Open Handset Alliance)& Members in OHA.
History of Android Versions?
Versions
Android Architecture
Tools and Languages
Submitting of An Android application into Android market.
![Page 3: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/3.jpg)
An Operating System act as interface between
User and Mobile hardware.
Each manufacture consists of separate Operating
System their product Namely
=>Nokia- Symbian, Belle , Windows,Android
=>Samsung- Bada, Android
=>Apple- iOS
=>BlackBerry- BlackBerryOS
=>HTC-Symbian ,Android.
![Page 4: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/4.jpg)
An Android is a Linux-based Operating System & a set of
software packages for Mobile device such as Mobiles,
Tablets, Computer Notebooks.
A free Open Source Operating System for Mobile
Devices.
Android is not Only for Mobiles.
It is currently used in Televisions,Watches,Washing
Machines, Tablets.
It is not a product or a device.
It consists of Linux-based kernel ,middleware and key
Applications.
![Page 5: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/5.jpg)
Android Incorporation was founded in Palo Alto,
California, United States in October, 2003 by Andy
Rubin, Rich Miner, Nick Sears and Chris White.
Google financially supports initial developer and
purchased it in 2005.
Android is a Andy’s nick name because of his fascination
in robot.
Andy Rubin and the team worked on the precursor to
Android, which they aimed would run on phones and
digital cameras.
OHA formed in 2007 and Google was released Android
beta version as an open source under Apache licsense.
![Page 6: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/6.jpg)
Open Source:
Open-source is a development model promotes
an universal access via a free license to a
Product.
Ex: Ubuntu, Open Solaris, Free BSD.
Closed Source:
Closed-source is also a development model and
it have certain license we must buy and it’s
source code doesn’t share with public.
Ex: Windows, Mac OS, Solaris .
![Page 7: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/7.jpg)
OHA is a consortium of 98 firms to develop Open
standard for Mobile device.
OHA was established on 6 Nov 2007 led by
Google with 34 members including Mobile
Handset makers, application developers, Mobile
carriers and chip makers.
Members of firms including
Google,Dell,HTC,Intel , LG-Electronics,
Samsung-E lectronics,T-Mobiles, Sprint Nextel,
and Texas Instruments, Nvidia.
![Page 8: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/8.jpg)
chip maker
![Page 9: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/9.jpg)
Android has been seen number of updates from
its original Version.
Each updated version typically fix the bugs and
adding new features from its previous version.
Android version name starts with Alphabetical
order.
Each Android version named under a dessert(One
sweet item).
Android beta version was released Nov-2007.
![Page 10: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/10.jpg)
1.0-Astro or Alpha in 2008(Sep).
1.1-Blender or beta in 2009(Feb).
1.5-Cupcake in 2009(Apr).
1.6-Donut in 2009(Sep).
2.0/2.1- Éclairs in 2009(Oct).
2.2- Froyo in 2010(May).
2.3-GingerBread in 2010(Dec).
3.0-HoneyComb in 2011(Feb).
4.0- Ice-cream sandwich in 2011(Oct).
4.1/4.2- JellyBeans in 2012(Jun).
4.4-Kitkat in 2013 (Sep).
5.0- lollipop in 2014(Nov).
![Page 11: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/11.jpg)
Cupcake: It is the major OS for Android ,it supports widgets and folders on home screen.
Donut: It is resolution of Home screen widgets and folders and it have efficient camera interface.
Éclairs: It is mainly used for browsing purpose and it also update the Google map API.
Froyo: It is faster than previous versions due to Just-in-time compiler and it supports Adobe flash.
Gingerbread: It is mainly used for UI, and it have NFC(Near Field Communication) so that the devices are can share the data with out connection.
Honeycomb: It is mainly used for tablets but it was little bit succeeded but greatly improved in 3D rendering and hardware acceluration.
![Page 12: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/12.jpg)
Ice Cream Sandwich: It is refined version of Honeycomb
and it optimizes the mobile device.
Jellybeans: It support multiple account users , home
screen notifications, lock screen widgets, quick search
notification bars, photosphere, Google now.
Kitkat: It having lot of advantages like Better memory
management, Improved Google Now, hangouts app
upgreaded,smart caller Id, immersive mode, integrated
with cloud storage, lock screen Art.
Lollipop: Project Volta – Big Battery Life, Material
Design, New Notifications.
![Page 13: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/13.jpg)
![Page 14: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/14.jpg)
![Page 15: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/15.jpg)
![Page 16: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/16.jpg)
Android is based on 2.6 Linux kernel.
Kernel act as a bridge between S/W and H/W.
It provides some system services such as
Security, Process management, Memory
management and drivers .
![Page 17: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/17.jpg)
Each Android run on its own processor instead of Dalvik
virtual Machine.
Dalvik has been written so that a device can run on
multiple VMs efficiently.
The DVM executes files in Dalvik executable format
which optimized for minimal memory.
DVM converts the .class files into the .dex(Dalivk
executable) files.
![Page 18: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/18.jpg)
Android includes a set of C/C++ libraries used by
various components of Android System.
Surface Manager: manages Access to display
subsystem and seamlessly composites 2D and 3D
graphic layers from multiple applications.
SSL: Source Socket layer.
SGL: Scalable Graphics Library.
SQLite: It is a powerful and light weight relational
Data Base Engine available to all application.
![Page 19: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/19.jpg)
Android will ships a set of core applications including
email client, SMS program, calendar, Maps, Browser and
Contacts.
In application framework we have many components
one of the very important component of application
framework is activity manager. This is the component
which actually manages life cycle of the applications
and gives us a common back-stack for navigates.
![Page 20: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/20.jpg)
Tolls used in Android:
• Android SDK
• Java JDK
• Eclipse IDE
• ADT-plugin
Languages used in Android:
• Java
• XML(Extensible Markup Language)
![Page 21: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/21.jpg)
Eclipse IDE Eclipse IDE is an open source community whose project building
tools and frameworks are developed for general purpose applications.
The most popular usage of Eclipse is as a Java development environment. So android project also developed using eclipse.
Download the ADT(Android Development Tool) plugin
• Start Eclipse, then select Help > Install New Software
• Click Add, in the top-right corner.
• In the Add Repository dialog that appears, enter "ADT
Plugin" for the Name and the following URL for the
Location.
https://dl-ssl.google.com/android/eclipse
• Click OK.
![Page 22: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/22.jpg)
![Page 23: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/23.jpg)
![Page 24: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/24.jpg)
Select Window > Preferences... to open the
Preferences panel (on Mac OS X, select
Eclipse > Preferences).
Select Android from the left panel.
For the SDK Location in the main panel, click
Browse... and locate your downloaded
Android SDK directory (such as android-sdk-
windows).
Click Apply, then OK.
![Page 25: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/25.jpg)
![Page 26: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/26.jpg)
![Page 27: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/27.jpg)
AVD Manager provides a Graphical User Interface
in which you can create and manage the AVD,
which are required by the Emulator .
You can launch the AVD Manager in using this
path
select Window --> AVD Manager, or click the
AVD Manager icon in the Eclipse toolbar.
![Page 28: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/28.jpg)
![Page 29: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/29.jpg)
![Page 30: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/30.jpg)
![Page 31: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/31.jpg)
![Page 32: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/32.jpg)
![Page 33: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/33.jpg)
![Page 34: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/34.jpg)
![Page 35: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/35.jpg)
![Page 36: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/36.jpg)
![Page 37: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/37.jpg)
![Page 38: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/38.jpg)
![Page 39: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/39.jpg)
![Page 40: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/40.jpg)
![Page 41: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/41.jpg)
src – your source code(JAVA)
gen – auto-generated code (usually just R.java)
Included libraries
Resources(XML)
Drawables (like .png images)
Layouts
Values (like strings)
Manifest file
![Page 42: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/42.jpg)
• Preferred way of creating User Interface.
• Used to define some of the resources
Layouts (UI)
Strings
• Manifest file
![Page 43: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/43.jpg)
• Auto-generated: you shouldn’t edit it
• Contains IDs of the project resources
• Enforces good software engineering
• Use findViewById and Resources object to get
access to the resources
Ex. Button b =
(Button)findViewById(R.id.button1)
Ex. getResources().getString(R.string.hello));
![Page 44: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/44.jpg)
• In res/values
strings.xml
• Application wide available strings
• Promotes good software engineering
• UI components made in the UI editor should have text defined in strings.xml
• Strings are just one kind of ‘Value’ there are many others
![Page 45: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/45.jpg)
Contains characteristics about your application
When have more than one Activity in app, NEED
to specify it in manifest file
Add an Activity in manifest.xml
Need to specify Services and other components
too.
Also important to define permissions and
external libraries, like Google Maps API
![Page 46: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/46.jpg)
To run android application right click your project and
Run as Android Application
To debug your application right click your project and
Debug as Android Application
![Page 47: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/47.jpg)
![Page 48: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/48.jpg)
![Page 49: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/49.jpg)
![Page 50: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/50.jpg)
There are 7 steps
STEP1:
Make sure you’ve properly prepared, tested,
and compiled your app as outlined in
the Android Developers Guide.
![Page 51: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/51.jpg)
Create a Developer profile on the Android
Market. From the Android Market site, sign with
your Google Account. If you don’t have a Google
Account, you can register for one on Google.
To create the Developer profile, you’ll need to
provide your name, email, website URL, and
phone number.
![Page 52: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/52.jpg)
Pay a $25 registration fee. This is a one-time
fee required for all developers, even if you are
publishing a free app. You can pay using credit
card or Google Checkout.
![Page 53: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/53.jpg)
Agree to the Android Market Developer
Distribution Agreement.
![Page 54: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/54.jpg)
Once you’ve completed the registration
portion, you’re ready to upload your app. Click
the Upload Application button.
![Page 55: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/55.jpg)
Upload your compiled .apk file to the Android
Market. You’ll need to fill out a form and upload
all assets including any screenshots or
promotional graphics. On the form, you will
provide details such as a title, description of
your app, category, price, and language.
![Page 56: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/56.jpg)
Once the App is uploaded, you should see in the
Android Market in a matter of moments.
![Page 57: Android by LAlitha](https://reader031.fdocuments.in/reader031/viewer/2022032010/55a271f21a28ab2e278b4860/html5/thumbnails/57.jpg)