0

I have been going through the following google tutorial, and just had a few questions:

  1. i pasted the code and ran it, and i noticed that the onStart() method gets executed. However I do not see any method call for this, how does this method get executed ?

  2. can you give an practical example of how a bound service would be ideal ?

user3134565
  • 965
  • 1
  • 7
  • 14

1 Answers1

0
  • That is because onStart() is called by an event, specifically, it is called when the activity becomes visible to the user.

Here's a nice explanation of the lifecycle of Android activities:

Android Activity Licecycle

diagram source

Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219
Vlad Schnakovszki
  • 8,434
  • 6
  • 80
  • 114
  • there are different kinds of services - local services, Aidl , what makes bound services different from them, what would be a practical example that would make them better ? – user3134565 Feb 16 '14 at 20:48