开发者

List view get item back

开发者 https://www.devze.com 2023-02-12 14:51 出处:网络
I am displaying the list of items in listview(assuming that main category), once i click the items, it shows the sub_category. and again i clicked the subcategory of item, it goes to next activity. My

I am displaying the list of items in listview(assuming that main category), once i click the items, it shows the sub_category. and again i clicked the subcategory of item, it goes to next activity. My question is whenever i clicked the subcategory and again i clic开发者_JAVA百科k back button in emulator, items in main category will not be displayed.


You will need to make use of Intent Flags such as Intent.FLAG_ACTIVITY_CLEAR_TOP to go to new sub activity and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT to go back to previous activity.

0

精彩评论

暂无评论...
验证码 换一张
取 消