onsaveinstancestate Questions

2

Solved

I have a complex layout to implement. It has 19 sections that can be displayed or not based on plenty of parameters previously entered by the user. In order to simplify the code and to not display ...
Kamat asked 22/8, 2017 at 12:43

1

I'm using toolargetool to investigate why the app is crashing from TransactionTooLargeException. I'm seeing there's this key androidx.lifecycle.BundlableSavedStateRegistry.key which can be around 4...
Venation asked 28/6, 2022 at 3:53

1

I have an Activity which controls several Fragments. The default Fragment is HomepageFragment. When replacing to a different Fragment i always make sure the stack stays flat - meaning only the Home...

1

Solved

I am new to Android and I have been struggling for some time now with saving state of a fragment. My app has 5 options in the bottomNavigationView (I am using the default activity from Android). In...

6

Solved

Sorry for my incomprehension, but I am new in the android development. I have an application with activity A and activity B in it, and I go from activity A to activity B. When I left activity A, t...

1

Solved

I am using the PhotoView library in my Android project. The project contains the SaveStatePhotoView which is used to keep the state (zoom level, position) of the image view on configuration changes...

2

Solved

I am using Android Studio 3.0.1 which allows to inspect the Bundle object in onSaveInstanceState: @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outStat...
Snowbound asked 4/12, 2017 at 12:6

8

Solved

I sometimes see the following stacktrace for a commit that can happen when the user isn't looking at the activity (after state's been saved): java.lang.IllegalStateException: Can not perform this ...

1

Solved

I'm trying to save state of my RecyclerView with GridLayoutManager, but when calling onSaveInstanceState() of activity and when I try to call onSaveInstanceState() on layout manager that always ret...

1

I want to use a fragment in multiple activities. In the first activity i will use it in, I created it by final ScoreBoard fragment = new ScoreBoard(); getFragmentManager() .beginTransaction() ...
1

© 2022 - 2024 — McMap. All rights reserved.