7

I am making a first try att creating a custom ActivityGroup. I am getting everything working except the activity lifecycle methods of the groups child activities. How can i call the onResume/onPause methods in my child activities when they enter/exit focus?

I know the tabActivity does this but i cannot find how when looking through the code.

Thanks in advance!

4

1 回答 1

0

我有一个类似的问题。我认为这与活动组如何存储历史记录有关。如果您将视图存储在数组列表中,则并不总是调用 onresume/onpause。我通过使用这个实现来解决它,它将活动ID存储在arraylist而不是视图中,我发现调用了onresume和onpause。

http://ericharlow.blogspot.com/2010/09/experience-multiple-android-activities.html

于 2011-08-23T18:30:34.960 回答