Agenda 1 – What is “ Android “ ? 2 – Android History 3 – Android Versions 4 – Why Android ?!! 5 – Development Tools 6 – Hello World 7 – Project content 8 - Event Handling 9 – Android Market
What is Android ? Android is an open-source software stack for mobile devices that includes an operating system, middleware and key applications. And it is based upon a modified version of the Linux kernel
Android History Google Inc. purchased the initial developer of the software in 2005. from Android Inc. which was founded in Palo Alto, California, United States in October, 2003 by Andy Rubin, Rich Miner.
Why Android ?! 1 – Open Source 2 – based on Linux kernel 3 – Flash Player Support 4 – Different Models 5 – Reasonable prices 6 – Google Apps 7 – Android Apps
Challenges of Smartphone Programming Screens Keyboards Pointing tools CPU speed and Memory
What You can use in Your App ? Network Storage GPS Phone Services MultiMedia
Development Tools - Java Language - Eclipse IDE - ADT Plug-in For Eclipse - Android SDK
Android SDK Consist of the following parts : - Android Emulator - Command line tools - Documentations. - example Applications.
Your First App “Hello World” Install Java JDK Install Eclipse Install ADT Plug-in Download Android SDK and install it Now, Create your First App Coding
Android Application Activities: user-facing components that present UI to interact with. Services:processes that work in the background and don’t have a visible background Content Providers: components make parts of your application data available to other applications
Android Application Intents: messages created by the system or application themselves that are then passed on to any interested party. Broadcast Receivers: These react to specific intents, and might execute an action.
Manifest File (4/6) The <activity> <activity android:name=".MrNorm" android:label="@string/app_name“ android:screenOrientation=“portrait” android:configurations=”keyboard|keyboardHidden|orientation”/>
Manifest File (5/6) The <uses-permission> <uses-permission android:name="android.permission.INTERNET" />
Manifest File (6/6) The <uses-sdk> <uses-sdkandroid:minSdkVersion=“3“ android:targetSdkVersion=“9” />
Activity life cycle The Activity can be in one of three states: - Running - Paused - Stopped - Dead
Activity life cycle
Input handling (1/4) Processing Single Touch Events: Touch Events are passed to an OnTouchListener interface implementation that we register with a view. The OnTouchListener interface has only a single method Public abstract booleanonTouch(View v, MotionEvent event)