"Back stack" is a stack in which activities within an Android task are arranged. Android task is a collection of activities that users interact with when performing a certain job. Through this process activities are placed on the stack, in the order in which each activity is opened. Activities can be accessed later in reverse order by pressing the "back" button.
Questions tagged [back-stack]
658 questions
0
votes
5 answers
What's the behaviour about android app backstack?
Suppose that we have three Activities:A、B、C . And the entrance sequence is A -> B -> C.Normally when come back from C the sequensce is C -> B -> A. But when in Activity C , I presss Home button to go to home screen . Will the app be killed after a…

ArronXY
- 41
- 4
0
votes
2 answers
NPE on Android BackStackEntry for onBackPressed
I'm trying to get the back-stack count of the fragments loaded in the activity. The idea here is if the getBackStackEntryCount returns '0', run my onexitCheck() method to worn/ask the user to exit or not but I am getting a NPE at line 70 where it…
user742030
0
votes
2 answers
How to Prevent Accidental App Exit w/in Android Fragments/Activities?
How Do I Prevent Accidental App Exit w/in Android?
IE: When the he/she presses the back button and reaches the last activity in the BackStack, show a toast to ask if the user wants to exit using the onBackPressed() method.
Also, It needs to function…
user742030
0
votes
1 answer
Activity stacks in android
I am still fairly new to understanding android and heard about activity stacks.
From what I read and understood was that it creates stack as you progress to each activity and leaves it behind as a stack item.
My question are:
Would removing an…

Juju
- 70
- 8
0
votes
1 answer
Backstack Tombstone wp7
I have just finished tombstoning a page in my application when I noticed that I only tombstone the page I am currently viewing, meaning that after I return the pages in the backstack lose all their members and doesn't get tombstoned.. I only find…

Igor Meszaros
- 2,081
- 2
- 22
- 46
0
votes
2 answers
How Can I remove backstack till the required pagename in Wp7.1
I want to remove pages from backstack till a particular page say "C" has reached when I am on some other page say "F".
Is Its posiible to remove backstack upon pagename?
Thanks and Regards,
Kanaya

Kenny
- 819
- 1
- 9
- 24
0
votes
1 answer
How Can I navigate to a particular page in backstack in WP7.1
How Can I navigate to a particular page depending upon pagename in navigation backstack in Wp7.1. I want to go back to say A page from C page on press of device back button, I dont know how many pages are inbetween.
Thanks,
kanaya

Kenny
- 819
- 1
- 9
- 24
0
votes
2 answers
How Can I navigate back to home screen in Windows Phone 7.1
I have a created an app which has a Homescreen/landing page,Now whenever user navigates till last page and clicks the device back button he is redirected back to Homescreen. Now the issue is I have written code to clear all the backstack whenever…

Kenny
- 819
- 1
- 9
- 24
-1
votes
1 answer
Android Activity OutOfMemoryError in Back Stack
I working on a android project like a instagram. There are a lot of images, datas etc. in the project. I used Glide library for set images in ImageView.
So if I open 10 profile pages in succession I get out-of-memory error…

Selman Tosun
- 428
- 5
- 14
-1
votes
2 answers
Backstack Issue in fragment and activity
Suppose I have total 7 activity say A, B, C, D, E, F, G, in Activity A I have 4 fragments after clicking on 4th fragment I am launching Activity B, Then Activity C, D, E, F .after Coming to Activity F, I want to navigate to 2 fragments of …

Akshay Padalkar
- 25
- 8
-1
votes
2 answers
How do I empty the back stack?
I am using DialogFragment. I have three dialogs that appear one after another.
Countries List --> States List --> Regions List
I have tow button on each of these dialogs, Cancel and OK. I put current dialog onto stack before I show next dialog. Now…

Umar Ali
- 13
- 6
-1
votes
2 answers
Activity not getting updated after back button pressed when recycler view is implemented
Activity not getting updating after back button pressed when recycler view is implemented. from A(onClickListener implemented from Adapter)->B(changes database and goes to A upon back button is pressed).
Problem is A is not getting updated after…

user5444140
- 83
- 1
- 10
-1
votes
2 answers
Android: Data passed with intent disappears when coming back from deeper hierarchy
I have an OverviewActivity that contains a listview. When an item is selected, an intent is created to move to the DetailActivity and I pass an int with it.
This int is assigned to a private variable and is used to query the database.…

Matt
- 375
- 3
- 10
-1
votes
5 answers
Why My Back Button not working Properly
I have a Two Activities Activity-A and Activity-B, And I pass the Value from Act-A to Act B using an Intent. Everything is working good. When I open my Act-B I get Value from Act-A, Now the Problem is when click the Back Button (Twice) then only i…

AndroidBoy
- 65
- 8
-1
votes
1 answer
How to call One activity back stack from another in android
Suppose I have a backstack of activities let's say A-B-C. Now I am at Activity C at the moment. Now a push notification is hit and when i touch the notification it creates another back stack of the same app as D-F. So when I press back button at…

Akshat Vajpayee
- 274
- 1
- 3
- 15