Page 2 of 2

how disabling auto rotate screen thru code?

Posted: Wed Feb 26, 2014 3:10 pm
by Maryna Brodina

Thank you! I'll update.


how disabling auto rotate screen thru code?

Posted: Wed Feb 26, 2014 9:05 pm
by Kateryna Grynko

Hi Marie,

Did you change codescreenOrientation="landscape"/code to codescreenOrientation="portrait"/code in one place only? In Androidmanifest.xml you would need to replace it three times.


how disabling auto rotate screen thru code?

Posted: Thu Feb 27, 2014 12:56 pm
by Maryna Brodina

Hello!
Sorry for misunderstanding.
1) Delete AndroidManifest.xml file
2) Undo all source changes on Android folder
3) You need to add android:screenOrientation="portrait" for one activity only (android:name=".PhoneGapActivity")
4) For activity android:name=".PhoneGapActivity" you have preandroid:configChanges="orientation|keyboardHidden|screenSize"/pre Please delete screenSize so that it looks like this preandroid:configChanges="orientation|keyboardHidden"/pre


how disabling auto rotate screen thru code?

Posted: Fri Feb 28, 2014 10:18 am
by marieall

Hi Maryna,

Actually while waiting for your answer I tested one by one what I changed on AndroidManifest.xml and it finally worked!
But in the end I added the line of code under each activity. I also didn't delete "screenSize".

Knowing everything is correct, do you think i should leave it like I did or correct from what you said?

It is now published on Google Play :)
https://play.google.com/store/apps/de...

Next step : App Store !

Thanks for all your help (you other appery employees!)


how disabling auto rotate screen thru code?

Posted: Fri Feb 28, 2014 11:25 am
by Maryna Brodina

Hello!
It's not necessary to do exactly the way we suggested. You can leave as it is if it works for you.
Good luck with App Store!