android-configchanges Questions
4
Solved
I'm trying to achieve a layout that shows a view pager when the device is shown on portrait and show two panes when device is on landscape.
So I made two different layout files, one with only a Vi...
Arbuckle asked 28/5, 2018 at 0:14
2
Solved
I'm working on a application which supports two different languages -
English
Arabic
The user can switch to any language at any time & based on the selection I'm changing the app language....
Tyson asked 20/4, 2018 at 12:22
0
Given the following situation (partially pseudo-code):
User presses a button in Activity A which in turn executes this code:
progressBar.setVisibility(VISIBLE) // by default is set as INVISIBLE...
Realistic asked 21/11, 2020 at 19:20
5
Solved
I've been looking at issues in stackoverflow and I've tried everything I've seen but the layout-land not work.
In my code I have and the method onConfigurationChanged
@Override
public void onConf...
Bartell asked 18/3, 2014 at 10:9
5
What is the significance of:
super.onCreate(null);
instead of
super.onCreate(savedInstanceState);
With this change, I am able to avoid many problems that otherwise plague my Activitys each ti...
Entebbe asked 9/9, 2016 at 10:50
0
I am an experienced Android developer and it is a shame that I am still ineffectively fighting against fundamental issues like persisting UI changes across configuration changes.
I know, this is a...
Blasius asked 4/12, 2018 at 0:3
5
Solved
Update: It turns out that the problem is from elsewhere. Thanks @Luksprog for pointing out what I overlooked.
The project is created using Android Studio's navigation drawer pattern. The drawer i...
Nowlin asked 24/1, 2014 at 14:9
4
Solved
My web app works great in Chrome which handles configuration changes (such as screen rotation) excellent. Everything is perfectly preserved.
When loading my web app into a WebView in my Android ap...
Pew asked 30/10, 2015 at 23:49
4
Solved
I have an Activity with ViewPager. the ViewPager have a lot of pages, Just like a book. Each fragment has RecyclerViews with a lot of content. The following is my use case
1 - When I swipe page, R...
Mystagogue asked 29/1, 2018 at 5:57
2
Solved
I'm having a really weird problem. I have a common fragment that is added in almost every activity of my app. This fragment shows a small version of the player bar. So it listens some broadcasts to...
Hehre asked 5/7, 2013 at 17:49
0
I have implemented pip for my app.
I note that in the Picture-in-picture support documentation it is suggested that
android:configChanges=
"screenSize|smallestScreenSize|screenLayout|orientatio...
Venola asked 21/2, 2018 at 16:16
3
Solved
Before all, i am a rookie in Android, and i am using API 10 (Gingerbread).
I am developing a simple game with libgdx. But i just install everything for start to work and... in the AndroidManifest....
Nahuatl asked 8/3, 2014 at 23:19
1
Solved
Introduction
Huh, this is a tough one. At least, I think so...
To clear things up:
I did not find any answers to my question after searching the internet (using Google).
Everything I found wa...
Arezzini asked 8/1, 2017 at 0:34
4
Sorry for my English
Should I save and restore arguments (returned by getArguments()) during configuration changes via outState \ savedInstanceState ?
Or getArguments() always returns passed arg...
Alkyd asked 1/4, 2014 at 11:45
3
Solved
When my app is installed, on first run it asks user to choose language; But if user starts app on second time, language is set automatically (to previously selected one).
Problem is that, on first...
Harim asked 5/11, 2015 at 10:16
2
Solved
This project is an extension of the Master/Detail flow template that can be found in Android Studio. The difference is that this application uses a single Activity and a ViewPager that manages thre...
Scheelite asked 11/3, 2016 at 13:32
1
Since AsyncTask was introduced in Cupcake (API 3, Android 1.5) in 2009, it has been consistently promoted by the Android team as simple:
"Painless threading"
"an easy way to execute some work in ...
Getraer asked 13/3, 2016 at 13:51
1
Solved
My problem involves an activity hosting three support fragments. One is a normal programmatic fragment (let's call it a home fragment). One is a portrait fragment added on top of the home fragment ...
Illampu asked 30/10, 2015 at 22:25
2
I have used recyclerview in a fragment. If activity's configChanges includes orientation, recycler view appears in the middle of the screen after phone orientation changes from landscape to portrai...
Corporal asked 11/7, 2015 at 8:47
0
From the developer guide on Loaders,
They automatically reconnect to the last loader's cursor when
being recreated after a configuration change. Thus, they don't need to
re-query their data.
...
Flatworm asked 30/6, 2015 at 2:24
0
Based on the accepted answer here, I added this code to an Activity as what I hoped to be the first step in changing the assigned Layout for an Activity:
@Override
public void onConfigurationChang...
Cannell asked 21/5, 2014 at 17:2
1
Solved
I what to change background as night mode changes.
I have /values and /values-night folder, that contain "colors.xml" with different values.
`
<color name="grey1">#ebebeb</color>
<...
Stubbs asked 15/10, 2013 at 11:32
1
Solved
Problems with app:
When orientation changes the app is experiencing these problems:
Both FragmentA and FragmentC now occupy the FrameLayout container.
What works: Everything works as I want it...
Nowhere asked 24/5, 2013 at 17:41
0
I am using ActionBarSherlock, along with several MenuItems that I dynamically manage, depending on program state. Specifically, I save the MenuItems into instance variables in the Activity's onCrea...
Hyperform asked 1/4, 2013 at 18:19
2
Some users reported that my app screen sometimes flickers when running on Android 4.2 (only!)
I tried on my device, and after putting logs, the activity is restarted and restarted again, about 3 t...
Dayton asked 19/11, 2012 at 5:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.