This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Mobile
»
Android
Author
Activity restarts even after android:configChanges is set in Manifest
Naishadh Parmar
Ranch Hand
Joined: Jun 02, 2011
Posts: 77
I like...
posted
Nov 03, 2012 04:53:03
0
I have an activity and I
DON'T
want it to restart when its orientation changes.
i wrote this in the activity tag of the Manifest file:
android:configChanges="orientation|keyboardHidden|keyboard"
and also implemented the onConfigurationChanged(Configuration) method
But still the activity restarts!!!
Please help me out.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
Nov 03, 2012 05:00:24
0
What minSdkVersion and targetSdkVersion values are you using in the manifest (if any)?
Android apps
–
ImageJ plugins
–
Java web charts
Naishadh Parmar
Ranch Hand
Joined: Jun 02, 2011
Posts: 77
I like...
posted
Nov 03, 2012 05:10:20
0
Hi Ulf. Thanks for the reply
minSdkVersion = 8
targetSdkVersion = 8
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Activity restarts even after android:configChanges is set in Manifest
Similar Threads
AdMob ad doesn't show in the emulator
Exception while running my app. (TargetSDK 2.2 API Level 8 running on 1.5 (API Level 3)
Two Buttons - Only one works?
Google Admob Integration Errors
Disadvanteges of android:configChanges="orientation|keyboardHidden"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter