• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Activity restarts even after android:configChanges is set in Manifest

 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What minSdkVersion and targetSdkVersion values are you using in the manifest (if any)?
 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Ulf. Thanks for the reply

minSdkVersion = 8
targetSdkVersion = 8
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic