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
  • 955
  • 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

Community
  • 1
  • 1
Vlad Schnakovszki
  • 7,981
  • 5
  • 80
  • 108
  • 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