Saturday, March 8, 2014

Android Application Architecture

AndroidManifest.xml file holds all of the different components of an Android Application together. 

The four main components of an Android Application - 

  • Activities 
  • Services 
  • Broadcast Receivers & 
  • Content Providers 
expose themselves to others through Intent Filters in the AndroidManifest.xml file.


 

Intent brings Web mindset to Mobile Application Development.



Intent & Intent Filter are modeled after Web -

  • Categories
    • Describes where and how the Intent can be used. 
  • Actions
    • Web equivalent: GET, POST, PUT, etc.
  • URIs
    • Contains data that can be used as method arguments in the respective Activities, Services, Broadcast Receivers & Content Providers. 

Android runtime evaluates the available Activities, Services, Broadcast Receivers & Content Providers and dispatches the Intent to the intended recipient as determined by the runtime.


Android development is modular in architecture. Android developers build components (Activities, Services, Broadcast Receivers & Content Providers), use components developed for other applications and can let others use their components to build apps. 

No comments:

Post a Comment