• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which method runs when i come back to activity

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagin there are two activities.Now i am in first activity.when i go to secone activity.So when i come back to first activity which method calls?i need to do some process when some one comes to after first time.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read one of the most important pages on the Android developer's network? http://developer.android.com/guide/components/activities.html I think you need to read and understand this thoroughly.
 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yup,

Understand the activity life cycle thoroughly and you will know which method is called. I would have told you but then you will not learn!
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic