SlideShare uma empresa Scribd logo
1 de 18
Android Development:What
       we can do…
        Antonio Radesca

        MCPD-Consultant

  antonio@nextgenerationteam.com
          antrad@libero.it

         Fiore Rosalba
       www.fiorerosalba.biz
                                   1
Android




          2
Architecture




4/14/2013          Confidential   3
Android features :P
•   Services
•   Broadcast Receivers
•   Intent
•   Alarm Manager
•   Pending Intents
•   Content Providers
•   Live Folders
•   IPC
4/14/2013        Confidential   4
Services
• A service doesn't have a visual user
  interface, but rather runs in the
  background for an indefinite period
  of time.




                                     5
Broadcast receivers
A broadcast receiver is a component
that does nothing but receive and
react to broadcast announcements.




                                      6
Demo




4/14/2013     Confidential   7
Intents

The three components activities, services, and
broadcast receivers, are activated by asynchronous
messages called intents.
An intent is an Intent object that holds the content of
the message.




                                                     8
AlarmManager
• This class provides access to the system alarm
  services. These allow you to schedule your
  application to be run at some point in the future.
  When an alarm goes off, the Intent that had
  been registered for it is broadcast by the
  system, automatically starting the target
  application if it is not already running.
  Registered alarms are retained while the device
  is asleep (and can optionally wake the device up
  if they go off during that time), but will be cleared
  if it is turned off and rebooted.


4/14/2013               Confidential                  9
Pending Intents

• By giving a PendingIntent to another
  application, you are granting it the right to
  perform the operation you have specified
  as if the other application was yourself

• A PendingIntent itself is simply a
  reference to a token maintained by the
  system describing the original data used
  to retrieve it.

4/14/2013           Confidential             10
Code




4/14/2013     Confidential   11
Content Providers
• Content providers store and retrieve data
  and make it accessible to all applications.
  They're the only way to share data
  across applications; there's no common
  storage area that all Android packages
  can access.




                                           12
Code




4/14/2013     Confidential   13
Notifications and Alarms
• A Notification defines the details of the notification
  message that is displayed in the status bar and
  "Notifications" window, and any other alert settings, such
  as sounds and blinking lights. Requires:
• An icon for the status bar
• A title and expanded message for the expanded view
  (unless you define a custom expanded view)
• A PendingIntent, to be fired when the notification is
  selected




                                                               14
Widget
App Widgets are miniature application views that can be embedded
in other applications (such as the Home screen) and receive periodic
updates. These views are referred to as Widgets in the user
interface, and you can publish one with an App Widget provider.




                                                                  15
Live Folders
• Live folders have been introduced in Android 1.5
  and let you display any source of data on the
  Home screen without forcing the user to launch
  an application. A live folder is simply a real-time
  view of a ContentProvider.




                                                   16
TextToSpeech
• API for text to speech
• Activity based
• Implement interface OnInitListener




4/14/2013         Confidential         17
IPC & AIDL
• IDL based
• Some restrictions

• Create Stub Classes
• Implements methods




4/14/2013        Confidential   18

Mais conteúdo relacionado

Semelhante a Android Development

Cross compiling android applications
Cross compiling android applicationsCross compiling android applications
Cross compiling android applicationssai krishna
 
Android Workshop Part 1
Android Workshop Part 1Android Workshop Part 1
Android Workshop Part 1NAILBITER
 
Mobile Applicaiton Development Unit 3.pdf
Mobile Applicaiton Development Unit 3.pdfMobile Applicaiton Development Unit 3.pdf
Mobile Applicaiton Development Unit 3.pdfnihitagrawal4
 
Mediating Applications on the Android System
Mediating Applications on the Android SystemMediating Applications on the Android System
Mediating Applications on the Android SystemNizar Maan
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentAzfar Siddiqui
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfNomanKhan869872
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbaifaizrashid1995
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Santosh Sh
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a NutshellAleix Solé
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paperSravan Reddy
 
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptxUNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptxVaibhavKhunger2
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1Nikhil Kulkarni
 
CNIT 128 Ch 4: Android
CNIT 128 Ch 4: AndroidCNIT 128 Ch 4: Android
CNIT 128 Ch 4: AndroidSam Bowne
 

Semelhante a Android Development (20)

Android basics
Android basicsAndroid basics
Android basics
 
Cross compiling android applications
Cross compiling android applicationsCross compiling android applications
Cross compiling android applications
 
Android Workshop Part 1
Android Workshop Part 1Android Workshop Part 1
Android Workshop Part 1
 
Mobile Applicaiton Development Unit 3.pdf
Mobile Applicaiton Development Unit 3.pdfMobile Applicaiton Development Unit 3.pdf
Mobile Applicaiton Development Unit 3.pdf
 
Mediating Applications on the Android System
Mediating Applications on the Android SystemMediating Applications on the Android System
Mediating Applications on the Android System
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdf
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbai
 
128-ch4.pptx
128-ch4.pptx128-ch4.pptx
128-ch4.pptx
 
Android Applications
Android ApplicationsAndroid Applications
Android Applications
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android ppt
Android ppt Android ppt
Android ppt
 
Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01Androidoverview 100405150711-phpapp01
Androidoverview 100405150711-phpapp01
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptxUNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
 
Android platform
Android platform Android platform
Android platform
 
Android
AndroidAndroid
Android
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
 
CNIT 128 Ch 4: Android
CNIT 128 Ch 4: AndroidCNIT 128 Ch 4: Android
CNIT 128 Ch 4: Android
 

Último

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 

Último (20)

Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 

Android Development

  • 1. Android Development:What we can do… Antonio Radesca MCPD-Consultant antonio@nextgenerationteam.com antrad@libero.it Fiore Rosalba www.fiorerosalba.biz 1
  • 3. Architecture 4/14/2013 Confidential 3
  • 4. Android features :P • Services • Broadcast Receivers • Intent • Alarm Manager • Pending Intents • Content Providers • Live Folders • IPC 4/14/2013 Confidential 4
  • 5. Services • A service doesn't have a visual user interface, but rather runs in the background for an indefinite period of time. 5
  • 6. Broadcast receivers A broadcast receiver is a component that does nothing but receive and react to broadcast announcements. 6
  • 7. Demo 4/14/2013 Confidential 7
  • 8. Intents The three components activities, services, and broadcast receivers, are activated by asynchronous messages called intents. An intent is an Intent object that holds the content of the message. 8
  • 9. AlarmManager • This class provides access to the system alarm services. These allow you to schedule your application to be run at some point in the future. When an alarm goes off, the Intent that had been registered for it is broadcast by the system, automatically starting the target application if it is not already running. Registered alarms are retained while the device is asleep (and can optionally wake the device up if they go off during that time), but will be cleared if it is turned off and rebooted. 4/14/2013 Confidential 9
  • 10. Pending Intents • By giving a PendingIntent to another application, you are granting it the right to perform the operation you have specified as if the other application was yourself • A PendingIntent itself is simply a reference to a token maintained by the system describing the original data used to retrieve it. 4/14/2013 Confidential 10
  • 11. Code 4/14/2013 Confidential 11
  • 12. Content Providers • Content providers store and retrieve data and make it accessible to all applications. They're the only way to share data across applications; there's no common storage area that all Android packages can access. 12
  • 13. Code 4/14/2013 Confidential 13
  • 14. Notifications and Alarms • A Notification defines the details of the notification message that is displayed in the status bar and "Notifications" window, and any other alert settings, such as sounds and blinking lights. Requires: • An icon for the status bar • A title and expanded message for the expanded view (unless you define a custom expanded view) • A PendingIntent, to be fired when the notification is selected 14
  • 15. Widget App Widgets are miniature application views that can be embedded in other applications (such as the Home screen) and receive periodic updates. These views are referred to as Widgets in the user interface, and you can publish one with an App Widget provider. 15
  • 16. Live Folders • Live folders have been introduced in Android 1.5 and let you display any source of data on the Home screen without forcing the user to launch an application. A live folder is simply a real-time view of a ContentProvider. 16
  • 17. TextToSpeech • API for text to speech • Activity based • Implement interface OnInitListener 4/14/2013 Confidential 17
  • 18. IPC & AIDL • IDL based • Some restrictions • Create Stub Classes • Implements methods 4/14/2013 Confidential 18