Wednesday, April 2, 2014

Intents

Intents are system messages that are responsible for notifying applications of severals events:

  • changes to the hardware (eg when the phone is inserted)
  • notifications of incoming data (eg when an SMS arrives) 
  • events in applications (eg when a activity is launched from the main menu). 


We can create activities that meet the intentions, we can also create intentions to launch activities or use them to trigger events to specific situations (eg the phone to notify us via a message when our location is 10 meters from the point of destination).
It is noteworthy that the system is choosing between the activities available on the phone and will answer the intention with the best activity.

Tuesday, April 1, 2014

ANDROID ACTIVITY

It is responsible for constructing the block UI. You can see  activity as the analog of a window in a desktop application. Activities have the responsibility of presenting the visual elements and react to user actions. While we can think of activities that do not have a user interface, the code regularly in these cases is packaged in the form of content providers  and services.