Android application ppt presentation

android kitkat ppt presentation and android lecture notes ppt and also android architecture explanation ppt
CharlieNixon Profile Pic
CharlieNixon,United Kingdom,Researcher
Published Date:13-07-2017
Your Website URL(Optional)
INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 — 02/15/2011 © Kenneth M. Anderson, 2011 1 Tuesday, February 15, 2011Android open source software toolkit created, updated and maintained by Google and the Open Handset Alliance 2.X series and previous: mobile phones 3.X series: extended to also support tablets We’ll be covering 2.X in this lecture I’m hoping a team will tackle 3.X as part of their project or that a graduate student will select it as the topic of their OO presentation © Kenneth M. Anderson, 2011 3 Tuesday, February 15, 2011Tim Bray’s What Android Is The next few slides paraphrase a November 2010 blog post by Tim Bray; be sure to read the original What Android Is Tim Bray is a co-inventor of XML and is currently employed by Google to work on Android © Kenneth M. Anderson, 2011 4 Tuesday, February 15, 2011Big Picture View (I) Android is a layered software framework At the bottom is the Linux kernel that has been augmented with extensions for Android the extensions deal with power-savings, essentially adapting the Linux kernel to run on mobile devices Next are a set of standard libraries Apache HTTP, OpenGL ES, Open SSL, SAX, WebKit, SQLite, libc, FreeType, etc. © Kenneth M. Anderson, 2011 5 Tuesday, February 15, 2011Big Picture View (II) Android is a layered software framework The third layer is the Android Framework These classes and services uniquely define Android Examples include Activity Manager, Search manager, Notification Manager, Media Player, Widow Manager, etc. These services are used by developers to create Android applications that can be run in the emulator or on a device © Kenneth M. Anderson, 2011 6 Tuesday, February 15, 2011Big Picture View (III) Android is a layered software framework The fourth layer are actual Android apps and services These applications are executed by the Dalvik virtual machine, essentially a Java virtual machine but with different bytecodes Note: Android also supports native applications written in C/C++ (think games); I will not be covering that aspect of Android programming © Kenneth M. Anderson, 2011 7 Tuesday, February 15, 2011Android Applications Android applications get distributed in a .apk file APK stands for “Android Package” It is simply a zip file that has a particular file structure (similar to JAR files that take snapshots of the file system) An APK contains The Android Manifest file (an XML file with lots of metadata) A Resource bundle containing sounds, graphics, etc. The Dalvik classes that make up your application © Kenneth M. Anderson, 2011 8 Tuesday, February 15, 2011Android Benefits (I) Proponents of Android point to the following benefits An open & free development platform Handset makers can use it without royalty and customize to their hearts content Component-based architecture Lots of default components (such as the on-screen keyboard) can be replaced straightforwardly © Kenneth M. Anderson, 2011 9 Tuesday, February 15, 2011Android Benefits (II) Proponents of Android point to the following benefits Lots of services: location, sql, maps, web, etc. Well managed applications; isolated from each other to protect data and provide security; operating system can quit programs as needed to ensure good performance on mobile devices Portability: To support a new device, a company has to port the virtual machine; Android apps (Dalvik) then execute on the new device with little to no modification © Kenneth M. Anderson, 2011 10 Tuesday, February 15, 2011Android Installation See Installing Android on the What’s New Page Major steps Install Java (if needed); JDK 5.0 or higher Download and install Eclipse Download the Android SDK Download a version of the Android Platform Install and Configure the Eclipse Android plug-in © Kenneth M. Anderson, 2011 11 Tuesday, February 15, 2011Before developing… (I) Create an Android Virtual Device The emulator for Android is called a “virtual device” When you first start developing for Android, you will need to create one; then Eclipse will build .apk files that can be stored and executed on that device (essentially they run on an imaginary phone that has been configured to have a certain amount of memory and UI and that targets a particular version of the Android API © Kenneth M. Anderson, 2011 12 Tuesday, February 15, 2011Before developing… (II) To create a vir tual device Launch Eclipse Select Window Android SDK and AVD Manager Select “Virtual Devices” in the resulting window Click “New…” Configure the resulting screen (defaults are fairly obvious) and click “Create AVD” © Kenneth M. Anderson, 2011 13 Tuesday, February 15, 2011Hello World (I) As with all advanced frameworks, the standard application template is configured to ensure that you have a working application from the start In Eclipse Click the new Android project icon Fill out the resulting dialog with the values on the next slide Click “Finish” © Kenneth M. Anderson, 2011 14 Tuesday, February 15, 2011Hello World (II) Project Name: Hello World Build Target: Android 2.3 (or whatever you downloaded) Application Name: Hello From Android Package Name: org.example.hello Activity: Hello Min SDK: 9 (or whatever you downloaded; 10 is the current latest SDK) © Kenneth M. Anderson, 2011 15 Tuesday, February 15, 2011Hello World (III) Zoom in on dialog box on the left to confirm what you should be seeing on your machine © Kenneth M. Anderson, 2011 16 Tuesday, February 15, 2011Meet the Android Project On disk, this virtual representation in Eclipse translates to 19 files stored in 19 directories Only 2 Java source code files however Demo © Kenneth M. Anderson, 2011 17 Tuesday, February 15, 2011Run the Program As mentioned previously, this application is ready to run So, right click on the project icon And select Run As Android Application The first time the emulator launches, it takes a long time; It may then show a “lock screen” that needs to be unlocked; It will then show our marvelous application © Kenneth M. Anderson, 2011 18 Tuesday, February 15, 2011Hello From Android We can see our application name across the top. But where did the string “Hello World, Hello” come from? © Kenneth M. Anderson, 2011 19 Tuesday, February 15, 2011Not in Hello, our initial Activity Lots of interesting info here We see the package that we specified in line 1 We see that activity’s come from the package But no sign of the “” string “Hello World, Hello” We see hints of a life cycle model: “onCreate” A clue: R.layout.main © Kenneth M. Anderson, 2011 20 Tuesday, February 15, 2011Not in Egads, run screaming Besides, it says “Auto- generated file. Do not Modify.” Autogenerated from what? © Kenneth M. Anderson, 2011 21 Tuesday, February 15, 2011

Advise: Why You Wasting Money in Costly SEO Tools, Use World's Best Free SEO Tool Ubersuggest.