Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activity did appear

I have a 3 Activities, and all of them has a a ViewFlipper with some images that keep running. The thing is that I load these images from the SDCard, and there are aproximatly 180 images.

EVERY TIME I call one of these activities, it takes some time to the ViewFlipper be completed.. I would like to know if there is something like onAppear for Android.. The contents of Activity changes everytime it gets called, so it can't be singleTask..

I would like to know if there is a way to refresh an Activity content, but without loosing its contents.. Like this: on the onCreate, everything would be done normal, but on something like onAppear, I would only change what I need, so that onCreate would be called only once.

This is how I change between the three Activities:

startActivity(new Intent(FirstOne.this, OtherOne.class));
like image 608
pedrofialho Avatar asked Nov 19 '12 17:11

pedrofialho


1 Answers

You probably need to override the onResume() method

like image 62
sdabet Avatar answered Oct 20 '22 05:10

sdabet