Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
118 views

After reboot the LauncherActivity is created. Then following a config change the activity is destroyed and recreated. I could in the log that ActivityTaskManager: Config changes=80000000 is printed. ...
Dev_Cob's user avatar
  • 71
0 votes
1 answer
103 views

My Vulkan-based game is based on NativeActivity and needs to avoid ALL activity destroy/recreate configuration changes because of the massive amount of load time it takes to do that. I currently have ...
Bungles's user avatar
  • 2,319
0 votes
1 answer
140 views

I have a scenario in my app where the expected behavior occurs during a device configuration change, such as an orientation change. This means that whenever the user changes the device's orientation, ...
Shah Zaman's user avatar
0 votes
0 answers
99 views

My game is based on NativeActivity and crashes for some reason when the user changes the phone language while the game is running. Why is this happening and how can I prevent it? My app consists of ...
Bungles's user avatar
  • 2,319
1 vote
0 answers
61 views

In my app we are using mostly SP in order to help visually impaired people. However, sometimes font is just too big or too small and android components don't work very well, cutting some text or ...
htafoya's user avatar
  • 19.4k
0 votes
0 answers
90 views

Here I am using different UX designs for portrait and landscape mode for a particlular activity. Created the folders layout-sw600dp and layout-sw600dp-land ,layout-sw720dp and layout-sw720dp-land for ...
Malhotra's user avatar
  • 251
0 votes
0 answers
98 views

I have an Activity A for which orientation (Portrait or Landscape) is set based on some condition. I have another activity B which is Portrait. Now when Activity A is in portrait mode and If I open ...
thebadassdev's user avatar
1 vote
2 answers
1k views

I want to change the application content from English to Spanish/ French as per the selection. Do we have any build-in libraries for the same. I am new to this multilanguage part, so please help me ...
Malhotra's user avatar
  • 251
2 votes
1 answer
767 views

My Fragment: class FirstFragment : Fragment() { private lateinit var binding: FragmentFirstBinding private lateinit var viewModelFactory: FirstViewModelFactory private lateinit var ...
Sam Chen's user avatar
  • 9,118
7 votes
0 answers
116 views

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 ...
me.at.coding's user avatar
  • 18.5k
0 votes
1 answer
93 views

I'm developing an Android app. I have a RecyclerView, and I can expand my items (several at the same time). The problem ocurrs when the orientation changes. I have a ViewModel, so the data is loaded ...
neyogiry's user avatar
3 votes
3 answers
2k views

We implemented night mode to our application. it works like a charm except for its transition. We are using the Base Application class to implement it. The problem is no matter what we tried we couldn'...
Eren Tüfekçi's user avatar
0 votes
1 answer
153 views

I would like to trigger something if the table were tilt from portrait to landscape or vice versa. However the onConfigurationChanged is never get triggered. I have read few question raised few year ...
user7601309's user avatar
2 votes
0 answers
1k views

I want to change my app language , this is a code I've for supporting different api versions val config: Configuration = context.getResources().getConfiguration() val locale = Locale(...
Navid Abutorab's user avatar
1 vote
0 answers
113 views

I'm currently running into an issue in an ARCore Android app (this is without sceneform). I have an activity that has a fragment that holds the ARCore session object, as well as the OpenGL ES context ...
Soud Kyl's user avatar
1 vote
1 answer
1k views

I want to add the version code as a suffix of versionNameSuffix. Currently, I have: debug { versionNameSuffix ".debug" } How can I have something like: debug { ...
Anh-Tuan Mai's user avatar
  • 1,209
2 votes
1 answer
930 views

When I put in activity android:name=".MainActivity" android:configChanges="orientation|screenSize" and do it for each one of my activities, the layout when I flip the orientation in the emulator ...
Alexandra's user avatar
  • 135
2 votes
0 answers
520 views

First of all, here are things I've done so far: (1) I handle screen rotation, orientation changes and Multi-Window related config changes inside my application. (2) I forbid all kinds of configChanges:...
Sergey Emeliyanov's user avatar
0 votes
1 answer
225 views

there are a lot of questions around this, however I was not able to solve. My app shouldnt restart when the device is put into a specific car cradle. I just want to ignore it I tried changing ...
Ti Smith's user avatar
1 vote
2 answers
353 views

I have a DialogFragment in my Android app, and I need to set android:configChanges="orientation|screenSize, I want to load different layout for my DialogFragment in portrait or landscape, but now ...
newszer's user avatar
  • 440
6 votes
4 answers
1k views

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, ...
Vinayak B's user avatar
  • 4,520
0 votes
1 answer
267 views

The android:configChanges="screenSize|orientation|keyboardHidden"> tag has no effect. My activity always is destroyed when the device is rotated. I do not know why this is. I have added every ...
poppy's user avatar
  • 297
1 vote
0 answers
506 views

I have added "ConfigurationChanges = ConfigChanges.Locale" in MainActivity. Upon changing language from settings, the app restarts when selected from background but language change is not reflected. ...
Sri's user avatar
  • 23
1 vote
0 answers
167 views

Activity A starts for result activity B. The user rotate the smartphone. The user press the back button. Activity B is finished. Activity A is re-created. After the onCreate() method, is the ...
berlusca's user avatar
  • 119
0 votes
1 answer
681 views

If we do not want to restart the activity during config changes, we can set flag android:configChanges; If we need to restart the activity (i.e., to update resources), we should not set the flag. In ...
JackWM's user avatar
  • 10.7k