aspose file tools
The moose likes Android and the fly likes Activity restarts even after android:configChanges is set in Manifest Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Activity restarts even after android:configChanges is set in Manifest" Watch "Activity restarts even after android:configChanges is set in Manifest" New topic
Author

Activity restarts even after android:configChanges is set in Manifest

Naishadh Parmar
Ranch Hand

Joined: Jun 02, 2011
Posts: 77


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:



and also implemented the onConfigurationChanged(Configuration) method

But still the activity restarts!!!

Please help me out.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
What minSdkVersion and targetSdkVersion values are you using in the manifest (if any)?


Android appsImageJ pluginsJava web charts
Naishadh Parmar
Ranch Hand

Joined: Jun 02, 2011
Posts: 77


Hi Ulf. Thanks for the reply

minSdkVersion = 8
targetSdkVersion = 8
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
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"