Android chapter01 intro handout

43 304 1
Android chapter01 intro handout

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Chapter1‐ 1 Chapter1 AndroidDevelopment Introduction VictorMatos ClevelandStateUniversity Notesarebasedon: Ad idDl A n d ro id  D eve l opers http://developer.android.com/index.html & UnlockingAndroid byFrankAbleson,CharlieCollins,andRobi Sen. ISBN978‐1‐933988‐67‐2 ManningPublications,2009. 1 Chapter1‐ Goals THEBIGPICTURE 1. WhatisAndroid? 2. Overviewdevelopmentenvironment 2 Chapter1‐ 2 Chapter1‐ Resources Android’swebpage http://www.android.com/ 3 WhatisAndroid? • Android isanopen‐sourcesoftwareplatform tdb Gl d th O Hdt crea t e d  b y G oog l ean d  th e O pen H an d se t  Alliance. • Itisprimarilyusedtopowermobilephones. • Ithasthecapabilitytomakeinroadsinmany other(non‐phone)embeddedapplication markets. 4 Chapter1‐ 3 WhatisAndroid? • Android™consistsofacompletesetof ft t f bil di so ft warecomponen t s f ormo bil e d ev i ces including: – anoperatingsystem, – middleware,and embedded key mobile applications – embedded  key  mobile  applications – alargemarket. 5 WhyAndroid? Listenfromtheprojectcreators/developers (2.19min) – NickSears.Co‐founderofAndroid St HitEi i Di t – St eve H orow it z. E ng i neer i ng Di rec t or – DamMorrill.Developer – Peisun Wu.EngineeringProjectManager – ErickTseng.ProjectManager – Iliyan Malchev.Engineer – MikeCleron.SoftwareManager – PerGustafsson.Gr aphicsDesigner. – etc… • http://www.youtube.com/watch?v=6rYozIZOgDk&eurl=http://www.android.com/about/&feature=player_embedd d e d • Youwillhearstatementssuchas “…currentlyitistoodifficulttomakenewproducts…opensoftwarebringsmore innovation…choices…lowercosts…moreapplicationssuchasfamilyplanner,my taxes,understandmywifebetter,…” 6 Chapter1‐ 4 WhatisOpenHandsetAlliance? • Quotingfr omwww.OpenHandsetAlliance.com page • “…OpenHandsetAlliance™,agroupof47technology andmobilecompanieshavecometogethertoaccelerate innovationinmobileandofferconsumersaricher,less expensive,andbettermobileexperience. • TogetherwehavedevelopedAndroid™,thefirst complete open and free mobile platform complete , open , and  free  mobile  platform . • Wearecommittedtocommerciallydeployhandsetsand servicesusingtheAndroidPlatform.“ 7 OpenHandsetAllianceMembers Operators SoftwareCo. Commercializat. Semiconductor HandsetManf ChinaMobile AscenderCorp. Aplix Audience ACER ChinaUnicom KDDICorp. NTTDoCoMo SprintNextel T‐Mobile TelecomItalia Telefóni ca Vodafone Softbank eBay Esmertec Google LivingImage NMSComm. NuanceComm. PacketVideo SkyPop SONiVOX Noser Engineering AstonishingTribe WindRiverSystems OmronSoftware … Teleca BroadcomCorp. IntelCorp. MarvellTec h. Group Nvidia Corp. Qualcomm SiRF Tech.Holdings Synaptics Texas Instr. AKM Semicond ASUS HTC LG Motorola Samsung ASUSTek Garmin Huawei Tech LG Samsung … Ericsson … Borqs AKM  Semicond . ARM Atheros Comm EMP Samsung … SonyEricsson Toshiba 8 Chapter1‐ 5 SeeAndroidDevelopers Shortvideo(4min.) Sh i D Bt http://www.youtube.com/watch?v=7Y4thikv‐OM Sh ow i ng D ave B or t andDanBorstein, twomembersofthe AndroidOpenSource Projecttalkabout theproject . 9 TheAndroidPlatform Again,whatdidtheysayaboutAndroid? • Androidisasoftware environmentbuiltformobile devices. • Itisnot ahardwareplatform. • Androidincludes: • Linuxkernel‐basedOS, • arichUI, • telephonefunctionality, • end‐userapplications, • code libraries, code  libraries,  • applicationframeworks, • multimediasupport, • UserapplicationsarebuiltforAndroidinJava. 10 Chapter1‐ 6 Android’sContext:MobileMarketPlayer$ Stakeholders: Mobilenetwork operators want Operators SoftwareDevice tolockdowntheirnetworks, contr ollingandmeteringtraffic. Device manufacturers wantto differentiatethemselveswith features,reliability,andprice points. VendorsManufacturers 11 Software vendors wantcomplete accesstothehardwaretodeliver cutting‐edgeapplications. TheMaturingMobileExperience Notsolongago…Today Electronictoolsofatypicalbusinesswarrior 1. Phone 2. Pager 3. PDAOrganizer 4. Laptop 5 Portable music player 1. Smartphone 2. Laptop(perhaps!) 5 . Portable  music  player 6. NoInternet access/ limitedaccess 12 Tomorrow? Chapter1‐ 7 TheMaturingMobileExperience Iwant my2015Smartphonetoactas… Trying to answer Tomorrow ? 1. Phone 2. Pager 3. PDAOrganizer 4. HighQualityCamera(still&video) 5. Po rtablemusicplayer 6. Po rtable TV/VideoPlayer/Radio 7. Laptop 8. PlayStation 9. GPS 10 GlfCdd (b ll i ) Trying  to  answer : Tomorrow  ? 10 . G o lf  C a dd y (b a ll retr i evertoo ) 11. BookReader(Idon’tread,Itreadstome) 12. Car/Home/OfficeKey 13. RemoteControl(Garage,TV,…) 14. CreditCard/Driver ’sLicense/Passport 15. CashonDemand 16. Cook,housechores 17. Psychologist/Mentor/Adviser 18. ???? 13 Androidvs.Competitors 1.AppleInc. 2.Microsoft 3.Nokia 4.Palm 5 Research In Motion 14 5 . Research  In  Motion 6.Symbian Chapter1‐ 8 TheSizeof theMobile Market http://gizmodo.com/5489036 /llh h / ce ll p h one‐overs h are [seeappendix] 1515 AndroidComponents(Stack) • TheAndroidstackincludesalargearrayof ft f bil li ti f ea t ures f ormo bil eapp li ca ti ons. • ItwouldbeeasytoconfuseAndroidwitha generalpurposecomputingenvironment. • Allofthemajorcomponentsofacomputing platform are included platform  are  included . 16 Chapter1‐ 9 AndroidComponents • Applicationframework enablingreuseandreplacementofcomponents • Dalvik virtualmachine optimizedformobiledevices • Integratedbrowser basedontheopensourceWebKit engine • Optimizedgraphics poweredbyacustom2Dgraphicslibrary;3Dgraphics basedontheOpenGLESspecification(hardwareaccelerationoptional) • SQLite forstructureddatastorage • Mediasupport forcommonaudio,video,andstillimageformats(MPEG4, H.264,MP3,AAC,AMR,JPG,PNG, GIF) • GSMTele p hon y ( hardwarede p endent )  py ( p) • Bluetooth,EDGE,3G,4G,andWi‐Fi (hardwaredependent) • Camera,GPS,compass,andaccelerometer (hardwaredependent) • Richdevelopmentenvironment includingadeviceemulator,toolsfor debugging,memoryandperformanceprofiling,andaplugin forthe EclipseIDE 17 AndroidComponents 18 Chapter1‐ 10 AndroidComponents Video1/3:Android’sArchitecture PresentedbyMikeCleron,GoogleCorp.(13min) 19 Availableat:http://www.youtube.com/watch?v=QBGfUs9mQYY AndroidComponents Video2/3:Application’sLifeCycle PresentedbyMikeCleron,GoogleCorp.(8min) 20 Availableat:http://www.youtube.com/watch?v=fL6gSd4ugSI&feature=channel [...]...         ... android: label="@string/app_name"> 71 Android Manifest xml File...   51 Android Services Debugging ‐... field. It has specialized methods for reading each type of data.  69 Android Content Provider Example: Posting a query to the Contact list (1/2) package matos.cis493; import android. app.Activity; import android. net.Uri; import android. os.Bundle; import android. widget.EditText; import android. widget.Toast; import android. provider.Contacts.People; import android. content.ContentUris; import android. database.Cursor; public class AndDemo1... 58 Chapter 1 ‐ 29 Android Broadcast Receiver Broadcast Receiver Example (1/5). Intercept arriving SMS package matos b oadcast ecei e matos.broadcastreceiver; import import import import android. content.BroadcastReceiver; android. content.Context; android. content.Intent; android. content.IntentFilter; import android. util.Log; import android. app.Activity; po t a d o d app ct ty; import android. os.Bundle;... /> / i i 63 Android Content Provider • Content providers store and retrieve data and make it ... http://sites.google.com/site/io/inside‐the android application‐framework htt // it l / it /i /i id th d id li ti f k Android is designed to be fast, powerful, and easy to develop for. This session  will discuss the Android application framework in depth, showing you the  machinery behind the application framework explains the life‐cycle of an android apk. very good! 22 Chapter 1 ‐ 11 Android Components Video:  An Introduction to Android

Ngày đăng: 16/03/2014, 23:31

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan