Android Development
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Android Development

on

  • 369 views

Android Development

Android Development

Statistics

Views

Total Views
369
Views on SlideShare
359
Embed Views
10

Actions

Likes
0
Downloads
13
Comments
0

3 Embeds 10

http://localhost 4
http://www.linkedin.com 4
https://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Android Development Presentation Transcript

  • 1. Android Development:What we can do… Antonio Radesca MCPD-Consultant antonio@nextgenerationteam.com antrad@libero.it Fiore Rosalba www.fiorerosalba.biz 1
  • 2. Android 2
  • 3. Architecture4/14/2013 Confidential 3
  • 4. Android features :P• Services• Broadcast Receivers• Intent• Alarm Manager• Pending Intents• Content Providers• Live Folders• IPC4/14/2013 Confidential 4
  • 5. Services• A service doesnt have a visual user interface, but rather runs in the background for an indefinite period of time. 5
  • 6. Broadcast receiversA broadcast receiver is a componentthat does nothing but receive andreact to broadcast announcements. 6
  • 7. Demo4/14/2013 Confidential 7
  • 8. IntentsThe three components activities, services, andbroadcast receivers, are activated by asynchronousmessages called intents.An intent is an Intent object that holds the content ofthe 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. Code4/14/2013 Confidential 11
  • 12. Content Providers• Content providers store and retrieve data and make it accessible to all applications. Theyre the only way to share data across applications; theres no common storage area that all Android packages can access. 12
  • 13. Code4/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. WidgetApp Widgets are miniature application views that can be embeddedin other applications (such as the Home screen) and receive periodicupdates. These views are referred to as Widgets in the userinterface, 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 OnInitListener4/14/2013 Confidential 17
  • 18. IPC & AIDL• IDL based• Some restrictions• Create Stub Classes• Implements methods4/14/2013 Confidential 18