fragmentmanager Questions
6
Solved
I am seeing the following error on Crashlytics with a lot of incidences:
Caused by java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.CompoundButton$SavedS...
Klehm asked 1/10, 2018 at 13:4
5
hello my problem is the following, I have 2 fragments, one receives with SetFragmentResultListener and another sends with setFragmentResult
The problem is that setFragmentResult does not work insid...
Accession asked 17/2, 2021 at 19:33
1
I am facing an issue in my Android app where I'm unable to use supportFragmentManager in my ComponentActivity subclass. As per my understanding, ComponentActivity does not support the FragmentManag...
Indiscipline asked 12/11, 2023 at 13:29
3
I have a dialogfragment which displays fine but some time when I try to display it I keep getting IllegalStateException
Below is the logcat
java.lang.IllegalStateException: Fragment already added...
Anchises asked 10/4, 2019 at 13:4
7
Solved
Since API 27 FragmentPagerAdapter is deprecated. What's the best alternative to use for this?
In my case, I understand something like super(fragmentManager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) ...
Alert asked 26/6, 2019 at 17:20
3
Solved
I have simple code below
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.frag...
Carboxylate asked 21/4, 2015 at 20:46
22
Solved
I have a FragmentActivity and I want to use a map fragment within it. I'm having a problem getting the support fragment manager to access it.
if (googleMap == null) {
googleMap = ((SupportMapFra...
Ibnrushd asked 27/11, 2013 at 8:44
6
After updating to the latest support repository,
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:percent:24.2.0'
compile...
Alike asked 2/9, 2016 at 14:59
3
Getting deprecation warnings for androidx.fragment.app.Fragment:
warning: [deprecation] getFragmentManager() in Fragment has been deprecated.
What to do?
Ruelu asked 4/2, 2020 at 4:59
8
I have two activities A and B. Activity A has a mapFragment and I am adding it to backstack. When I come back from to Actvity A from B, I want the fragment to show up in same state as I left it. Bu...
Survey asked 19/3, 2015 at 15:22
6
Solved
I'm integrating Android's Navigation Architecture Components into my app. I ran into some problems with passing data to the start of a fragment from an activity, so I was following this answer: Nav...
androidandroid-fragmentsandroid-architecture-componentsfragmentmanagerandroid-architecture-navigation
Franky asked 16/6, 2018 at 1:4
3
Solved
I have 4 button to replace fragment in activity [fragment A , fragment B , fragment C , fragment D] and then I replace fragment A to activity and I change value in fragment A after that I replace f...
Dressy asked 11/6, 2017 at 4:26
5
In activity onResume method I call volley request, which is getting list of items and then loads them to ListFragment inside this activity. When I enter activity for the first time everything is wo...
Denesedengue asked 11/3, 2020 at 17:8
3
Solved
EDIT: It seems that this only happens if my previous activity is in landscape, and the setRequestedOrientation() is portrait, what could possibly be the problem?
I have a code in an activity, whic...
Hebrides asked 12/11, 2019 at 8:29
1
Solved
I have a parent Fragment that has inside a FragementContainerView in which there is a transition of different Fragments. The parentFragment has a button that when is clicked it has to collect all t...
Convertible asked 5/7, 2021 at 11:8
2
When a user selects an item in the Navigation Drawer, my app kicks off a Handler which, after waiting for the drawer to close, calls the code to replace the fragment in my main Activity. However, i...
Hafnium asked 9/11, 2015 at 18:59
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
1
Solved
I am using 4 fragments with view pager 2.
And got this error suddenly. The crash does not always appear. I have searched other problems but I could not find any solution about viewpager2.
crash rep...
Bakst asked 2/12, 2020 at 9:0
6
Solved
I'm implementing menu navigation using Fragments. So I begin with Home, and then users can navigate to diferent sections and details of each section.
When a user changes section, then I call pop o...
Tadd asked 6/5, 2014 at 15:43
1
Solved
I decided to execute a Firebase Robo Test for my app and noticed that it always crashes after opening an external activity and then returning back to the app. I was able to duplicate the problem by...
Nates asked 10/9, 2020 at 14:5
1
Solved
We have a PreferenceFragmentCompat, and with a tap on a preference, we want to switch from the current PreferenceFragmentCompat to a new PreferenceFragmentCompat. (To have certain settings on a new...
Alto asked 7/8, 2020 at 15:41
3
Solved
I am Using Navigation Drawer in my app. I have one MainActivity and rest of are Fragments. So the issue is Suppose i have three fragments like A,B,C.
Now in A i have one button and i am sending da...
Lamination asked 10/3, 2017 at 6:16
2
Solved
I wanted to know when a Fragment has been pop from backstack.
I have my code as below
private void setupChildFragmentPopListener() {
getChildFragmentManager().addOnBackStackChangedListener(
new...
Coerce asked 6/12, 2016 at 0:6
3
I have 3 fragment A, B,C.I wrote piece of code for replacing them and maintaining backstack:
public void addFragment(Fragment fragmentToAdd, String fragmentTag) {
FragmentManager supportFragment...
Layla asked 9/3, 2014 at 4:59
1
I am working with some fragments but the transition animations when switching from one to another is very laggy and sometimes it even skips the entire animation (which I've read that sometimes is a...
Waldrup asked 6/2, 2020 at 17:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.