back-stack Questions
3
Solved
I'm working on an application in which tabs are implemented using FragmentActivity. Since, tabs are required throughout the application, fragments are used extensively to make the application compa...
Schoof asked 18/8, 2012 at 2:36
1
When turning on "Don't keep activities in the Android developer options, the navigation route stack of Flutter app seems to be cleared and the Android app shows the first screen like a fresh s...
Selfappointed asked 7/5, 2018 at 15:13
5
Solved
I have a sequence of event via which i have added three fragments to the backstack, one by one. Each of these fragments covers the full screen of the activity.
I have stored the is returned from t...
Wickedness asked 6/4, 2014 at 7:49
8
I have an application with activities back stack A -> B -> C -> D -> E. Now at activity E, I want to know the back stack activities that I navigated from. How do I find this??
Trial asked 3/11, 2011 at 9:24
5
Solved
Is there a way to print the current back stack of the current task in an Android app? In particular, I want to understand when an activity is popped off the stack after its onDestroy() is called.
Poyssick asked 18/7, 2012 at 20:4
20
Solved
I have multiple fragment inside an activity. On a button click I am starting a new fragment, adding it to backstack. I naturally expected the onPause() method of current Fragment and onResume() of ...
Nuclear asked 4/7, 2012 at 9:23
14
Solved
Is it possible to start an activity on the stack, clearing the entire history before it?
The situation
I have an activity stack that either goes A->B->C or B->C (screen A selects the users token,...
Esker asked 13/8, 2010 at 0:59
5
Solved
I have an activity A, which calls fragment Bf, which calls fragment Cf. I want Bf to be placed in the backstack when Cf is called so that users can navigate back to it. However, if a specific butto...
Arlin asked 20/2, 2013 at 3:28
2
Solved
I have Four Activity - A,B,C,D
I am calling these four activity in manner --> A-B-C-D-B. (Specified Manner)
I have three scenario.
1st :- I am defining android:launchMode="singleTask" only in B ...
Burgeon asked 26/9, 2017 at 13:23
15
Solved
Say I have an activity that has fragments added programmatically:
private void animateToFragment(Fragment newFragment, String tag) {
FragmentTransaction ft = getFragmentManager().beginTransaction...
Tinct asked 2/6, 2012 at 15:28
14
Solved
When the BACK button is pressed on the phone, I want to prevent a specific activity from returning to its previous one.
Specifically, I have login and sign up screens, both start a new activity ca...
Hali asked 25/12, 2011 at 19:12
16
Solved
I've written up a dummy activity that switches between two fragments. When you go from FragmentA to FragmentB, FragmentA gets added to the back stack. However, when I return to FragmentA (by pressi...
Macaluso asked 5/7, 2012 at 21:50
18
Solved
When i am clicking on Logout button in my Profile Activity i want to take user to Login page, where he needs to use new credentials.
Hence i used this code:
Intent intent = new Intent(ProfileActi...
Yerxa asked 18/10, 2012 at 5:48
11
Solved
I have 2 activities: Main and List.
From Main you can open List; from List you can open Main.
I'd like it so that every opening of List does not get saved into the 'history'. So, pressing back fr...
Pattiepattin asked 10/9, 2012 at 19:50
8
Hi I am developing android application in which I am using I am using single Activity and 3 fragments. So consider I have 3 fragments A B C. When I switch from A to B, I am adding Fragment to backs...
Likely asked 16/10, 2013 at 5:36
0
I have created an android app (Sample APK & Github Repo) where I implement a BottomNavigationBar with ViewPager. Navigation is ok but I don't know how to handle the back stack in a viewpager li...
Boman asked 21/5, 2021 at 13:12
6
Solved
I am using a ViewPager to implement swiping in my android app. However, I would like the previous fragment to be shown when the user uses the back button instead of ending the activity. Is there an...
Thyrse asked 3/10, 2012 at 16:36
11
Solved
I am using a bottom navigation bar in my MainActivity to handle some fragments. This is the code used for switching between them:
private val mOnNavigationItemSelectedListener = BottomNavigationVi...
Sculpture asked 11/6, 2019 at 8:13
3
Solved
My scenario : Activity 1 consists of Fragments A-> B-> C. All the fragments are added using this code :
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransa...
Rutherfurd asked 21/12, 2012 at 5:44
8
I have an Activity in which I go through several fragments. In every fragment I have several views (EditText, ListView, Map, etc).
How can I save the instance of the fragment that is shown at that...
Fiddlefaddle asked 19/3, 2014 at 12:7
1
I have just implemented a way to change the theme in my app. Pressing a button sets a value in SharedPreferences, then the Activity is recreated, and the theme is changed due to the flag.
The prob...
Whirl asked 3/7, 2015 at 3:12
17
How can I get the latest fragment instance added in backstack (if I do not know the fragment tag & id)?
FragmentManager fragManager = activity.getSupportFragmentManager();
FragmentTransaction ...
Rapid asked 14/3, 2012 at 12:43
10
Solved
I am working on fragment transaction, and the backstack is like this:
fragA => fragB => fragC => fragD
I would like to return to fragA after back fromn the fragD
fragD => onBackPres...
Weightlessness asked 6/2, 2015 at 7:47
1
Solved
I have 4 Activities: Launcher, MainActivity(SingleTask), NotificationActivity, ExampleActivity.
When the user clicks on the notification, NotificationActivity opens then ExampleActivity and finish...
Denbrook asked 22/5, 2020 at 23:11
4
My Application Flow:
Login->Profile->UpdateProfile->ChangePass
All of my activitys extends FragmentActivity
When I press button in ChangePass Activity I call this code:
Intent intent=new Intent...
Massey asked 14/4, 2014 at 13:58
1 Next >
© 2022 - 2024 — McMap. All rights reserved.