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...
Gaskins asked 21/8, 2019 at 5:30
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...
Virile asked 26/3, 2020 at 20:22
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...
Octonary asked 12/3, 2013 at 13:25
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...
Solatium asked 10/3, 2019 at 13:4
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 ...
Kibitka asked 13/2, 2013 at 18:16
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...
Eyestrain asked 4/11, 2017 at 11:21
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()
...
Auberge asked 26/2, 2017 at 3:0
1
© 2022 - 2024 — McMap. All rights reserved.