SlideShare una empresa de Scribd logo
1 de 43
Ahmed AliMobileSq.net Founder@ahmed_aly
Mobile Operating Systems
Android is No.1
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.
system-architecture
What is That !!!
Android Platform Android 1.5  CupCake Android 1.6  Donut Android 2.1  Eclair Android 2.2  Froyo Android 2.3  Gingerbread Android 3.0  Honeycomb  , Tablet Oriented Android 4.0  Ice Cream Sandwich
Some statistics
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.
Android Emulator
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
Project Content
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 (1/6) The <manifest> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.MobileSq.HelloWorld" android:versionCode="1" android:versionName="1.0“ android:installLocation=“preferExternal”>
Manifest File (2/6) The <application> <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> </application>
Manifest File (3/6) The <activity> <activity   android:name=".HelloWorld" android:label="@string/app_name">      <intent-filter>              <actionandroid:name="android.intent.action.MAIN" />              <categoryandroid:name="android.intent.category.LAUNCHER" />      </intent-filter> </activity>
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)
Input handling (2/4) Processing Single Touch Events: (Cont.) MotionEvent.getX() MotionEvent.getY() MotionEvent.getAcation() MotionEvent.ActionDown MotionEvent.ActionMove MotionEvent.ActionCancle MotionEvent.ActionUp
Input handling (3/4) Processing Key Events: To catch key Events, we implement another listener interface, called OnKeyListener Public booleanonKey(View v, intkeyCode, KeyEvent event)
Input handling (4/4) Processing Key Events: KeyEvent.getAction() KeyEvent.ActionDown KeyEvent.ActionUp KeyEvent.getUnicodeChar()
Coding !!!
Android Market
Android Market	 Market Is Divided into Two Parts  1 – Phone Market 2 – Web Market
Android Market  - $25 Registration Fee for Developer  - Developer receive 70% of Each Sale  - Remaining amount Goes to carriers   - Google Doesn’t Take any percentage   - Website : www.market.android.com
Summery
`
@ahmed_aly www.MobileSq.net
My Contacts LinkedIn : http://eg.linkedin.com/in/ahmedali1 Facebook : Facebook.com/Ahmed.Ali.Ibrahim Gmail : ahmed.saraya90@gmail.com HotMail : ahmed_ali@feng.bu.edu.eg

Más contenido relacionado

La actualidad más candente

Android development - ListView & Adapter
Android development - ListView & AdapterAndroid development - ListView & Adapter
Android development - ListView & AdapterLope Emano
 
Lecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting StartedLecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting StartedAhsanul Karim
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)Ahsanul Karim
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedAhsanul Karim
 
Android and its market
Android and its marketAndroid and its market
Android and its marketAnurag gond
 
Android Oreo Key Features
Android Oreo Key FeaturesAndroid Oreo Key Features
Android Oreo Key FeaturesAppinventiv
 
mobile app development company in coimbatore- SAISS
mobile app development company in coimbatore- SAISSmobile app development company in coimbatore- SAISS
mobile app development company in coimbatore- SAISSktgsaiss
 
Android development company in coimbatore- SAISS
Android development company in coimbatore- SAISSAndroid development company in coimbatore- SAISS
Android development company in coimbatore- SAISSktgsaiss
 
Getting Started with Titanium Studio
Getting Started with Titanium StudioGetting Started with Titanium Studio
Getting Started with Titanium StudioKet Majmudar
 
Basic android workshop
Basic android workshopBasic android workshop
Basic android workshopThagatpam Tech
 

La actualidad más candente (20)

Android
Android Android
Android
 
Android development - ListView & Adapter
Android development - ListView & AdapterAndroid development - ListView & Adapter
Android development - ListView & Adapter
 
Google phones - android
Google phones  -  androidGoogle phones  -  android
Google phones - android
 
Lecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting StartedLecture 1 Session 1 Before Getting Started
Lecture 1 Session 1 Before Getting Started
 
Sensors in Android (old)
Sensors in Android (old)Sensors in Android (old)
Sensors in Android (old)
 
Day 1 Android: Before Getting Started
Day 1 Android: Before Getting StartedDay 1 Android: Before Getting Started
Day 1 Android: Before Getting Started
 
Android and its market
Android and its marketAndroid and its market
Android and its market
 
Android oreo
Android oreoAndroid oreo
Android oreo
 
Android.
Android.Android.
Android.
 
Android Oreo Key Features
Android Oreo Key FeaturesAndroid Oreo Key Features
Android Oreo Key Features
 
mobile app development company in coimbatore- SAISS
mobile app development company in coimbatore- SAISSmobile app development company in coimbatore- SAISS
mobile app development company in coimbatore- SAISS
 
Android development company in coimbatore- SAISS
Android development company in coimbatore- SAISSAndroid development company in coimbatore- SAISS
Android development company in coimbatore- SAISS
 
Android material2
Android material2Android material2
Android material2
 
iOS training (intermediate)
iOS training (intermediate)iOS training (intermediate)
iOS training (intermediate)
 
Aio open data V1
Aio open data V1Aio open data V1
Aio open data V1
 
Sdk technology
Sdk technologySdk technology
Sdk technology
 
My android
My androidMy android
My android
 
Getting Started with Titanium Studio
Getting Started with Titanium StudioGetting Started with Titanium Studio
Getting Started with Titanium Studio
 
Basic android workshop
Basic android workshopBasic android workshop
Basic android workshop
 
Android Oreo 8.0
Android Oreo 8.0Android Oreo 8.0
Android Oreo 8.0
 

Similar a Android development

Introduction to android mobile app development.pptx
Introduction to android mobile app development.pptxIntroduction to android mobile app development.pptx
Introduction to android mobile app development.pptxridzah12
 
Outstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement AwardOutstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement Awardpravinmali2191
 
Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around AndroidBipin Jethwani
 
Mobile Application Development with Android
Mobile Application Development with AndroidMobile Application Development with Android
Mobile Application Development with AndroidIJAAS Team
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programmingPERKYTORIALS
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorialAjai Kumar
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfAbdullahMunir32
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development pptsaitej15
 
Software training report
Software training reportSoftware training report
Software training reportNatasha Bains
 
PRESENTATION ON ANDROID
PRESENTATION ON ANDROIDPRESENTATION ON ANDROID
PRESENTATION ON ANDROIDRajat Kumar
 
Android presantation
Android presantationAndroid presantation
Android presantationUdayJethva
 
001-Mobile Application.pptx
001-Mobile Application.pptx001-Mobile Application.pptx
001-Mobile Application.pptxAhmedDarre
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologiesjerry vasoya
 
Getting Started With Android Application Development [IndicThreads Mobile Ap...
Getting Started With Android Application Development  [IndicThreads Mobile Ap...Getting Started With Android Application Development  [IndicThreads Mobile Ap...
Getting Started With Android Application Development [IndicThreads Mobile Ap...IndicThreads
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopKasun Dananjaya Delgolla
 

Similar a Android development (20)

Introduction to android mobile app development.pptx
Introduction to android mobile app development.pptxIntroduction to android mobile app development.pptx
Introduction to android mobile app development.pptx
 
What is Android
What is Android What is Android
What is Android
 
Outstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement AwardOutstanding Improvement Award Outstanding Improvement Award
Outstanding Improvement Award Outstanding Improvement Award
 
Introduction to everything around Android
Introduction to everything around AndroidIntroduction to everything around Android
Introduction to everything around Android
 
Mobile Application Development with Android
Mobile Application Development with AndroidMobile Application Development with Android
Mobile Application Development with Android
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programming
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Mobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdfMobile Application Development-Lecture 01 & 02.pdf
Mobile Application Development-Lecture 01 & 02.pdf
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
Software training report
Software training reportSoftware training report
Software training report
 
Android by LAlitha
Android by LAlithaAndroid by LAlitha
Android by LAlitha
 
PRESENTATION ON ANDROID
PRESENTATION ON ANDROIDPRESENTATION ON ANDROID
PRESENTATION ON ANDROID
 
Android
AndroidAndroid
Android
 
Android presantation
Android presantationAndroid presantation
Android presantation
 
001-Mobile Application.pptx
001-Mobile Application.pptx001-Mobile Application.pptx
001-Mobile Application.pptx
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Getting Started With Android Application Development [IndicThreads Mobile Ap...
Getting Started With Android Application Development  [IndicThreads Mobile Ap...Getting Started With Android Application Development  [IndicThreads Mobile Ap...
Getting Started With Android Application Development [IndicThreads Mobile Ap...
 
Android Basic- CMC
Android Basic- CMCAndroid Basic- CMC
Android Basic- CMC
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 

Último

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Último (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Android development

  • 3.
  • 5. 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
  • 6.
  • 7.
  • 8. 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
  • 9. 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.
  • 12. Android Platform Android 1.5 CupCake Android 1.6 Donut Android 2.1 Eclair Android 2.2 Froyo Android 2.3 Gingerbread Android 3.0 Honeycomb , Tablet Oriented Android 4.0 Ice Cream Sandwich
  • 14. 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
  • 15. Challenges of Smartphone Programming Screens Keyboards Pointing tools CPU speed and Memory
  • 16. What You can use in Your App ? Network Storage GPS Phone Services MultiMedia
  • 17. Development Tools - Java Language - Eclipse IDE - ADT Plug-in For Eclipse - Android SDK
  • 18. Android SDK Consist of the following parts : - Android Emulator - Command line tools - Documentations. - example Applications.
  • 20. 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
  • 22. 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
  • 23. 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.
  • 24. Manifest File (1/6) The <manifest> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.MobileSq.HelloWorld" android:versionCode="1" android:versionName="1.0“ android:installLocation=“preferExternal”>
  • 25. Manifest File (2/6) The <application> <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> </application>
  • 26. Manifest File (3/6) The <activity> <activity android:name=".HelloWorld" android:label="@string/app_name"> <intent-filter> <actionandroid:name="android.intent.action.MAIN" /> <categoryandroid:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
  • 27. Manifest File (4/6) The <activity> <activity android:name=".MrNorm" android:label="@string/app_name“ android:screenOrientation=“portrait” android:configurations=”keyboard|keyboardHidden|orientation”/>
  • 28. Manifest File (5/6) The <uses-permission> <uses-permission android:name="android.permission.INTERNET" />
  • 29. Manifest File (6/6) The <uses-sdk> <uses-sdkandroid:minSdkVersion=“3“ android:targetSdkVersion=“9” />
  • 30. Activity life cycle The Activity can be in one of three states: - Running - Paused - Stopped - Dead
  • 32. 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)
  • 33. Input handling (2/4) Processing Single Touch Events: (Cont.) MotionEvent.getX() MotionEvent.getY() MotionEvent.getAcation() MotionEvent.ActionDown MotionEvent.ActionMove MotionEvent.ActionCancle MotionEvent.ActionUp
  • 34. Input handling (3/4) Processing Key Events: To catch key Events, we implement another listener interface, called OnKeyListener Public booleanonKey(View v, intkeyCode, KeyEvent event)
  • 35. Input handling (4/4) Processing Key Events: KeyEvent.getAction() KeyEvent.ActionDown KeyEvent.ActionUp KeyEvent.getUnicodeChar()
  • 38. Android Market Market Is Divided into Two Parts 1 – Phone Market 2 – Web Market
  • 39. Android Market - $25 Registration Fee for Developer - Developer receive 70% of Each Sale - Remaining amount Goes to carriers - Google Doesn’t Take any percentage - Website : www.market.android.com
  • 41. `
  • 43. My Contacts LinkedIn : http://eg.linkedin.com/in/ahmedali1 Facebook : Facebook.com/Ahmed.Ali.Ibrahim Gmail : ahmed.saraya90@gmail.com HotMail : ahmed_ali@feng.bu.edu.eg

Notas del editor

  1. Create it yourself