Questions tagged [onconfigurationchanged]

154 questions
-1
votes
2 answers

Change the screen orientation of screen when setRequestedOrientation called in onCreate

I am trying to develop an android application which requires me to open app a certain activity first in landscape mode however user must have that facility that they can change the orientation when they rotate the screen. Issue is I can change to…
Saty
  • 2,563
  • 3
  • 37
  • 88
-1
votes
1 answer

How to receive onConfigurationChanged events (Android SDK)

The goal is to fix the screen layout as "landscape" or "portrait" and continue to receive rotation events. I know about onConfigurationChanged(Configuration newConfig) in Activity but it does not work with fixed layouts. How to deal with this? To…
Almaz
  • 920
  • 11
  • 13
-1
votes
2 answers

Usage of onSaveInstanceState function with arraylist

I have a ToDoItem.java class and in my mainActivity class i have an arraylist in type of ToDoItem. I mean i have a "ArrayList(ToDoItem) listItems". I want to protect my arraylist in case of any configuration change. For this reason i want to use…
cgbs
  • 83
  • 3
  • 13
-2
votes
1 answer

Orientation Change, especially in Android 2.3.3

My Application is running for Android 2.3.3 to 4.2.2 I want to avoid the restart of the Activity by rotating the display. Also I added the attribute android:configChanges="orientation|screenSize" in the manifest to these Activity. Thanks LogCat I…
lis
  • 670
  • 1
  • 13
  • 32
1 2 3
10
11