tags:

views:

43

answers:

1

I am using an ActivityGroup and when I finish a top-level Activity (e.g. with destroyActivity method) and display one from history, the getCurrentActivity method returns the last Activity - the finished one. I need to access currently displayed activity, which is actually shown.

A: 

Well, it looks like getCurrentActivity() in single task mode returns only the latest started activity, without taking care of history. A workaround is to keep Activities' Ids, so getActivity(String id) can be used.

LordTwaroog