开发者

List view get item back

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜