aadhagupta aadhagupta - 1 year ago 80
Android Question

android orientation change with savedInstanceState and retrieveInstanceState for signup page

I am new to android, love to learn..

I am just building a basic application which has a login page and sign up page. I want to add orientation change with the data saved from portrait to landscape.

Kindly suggest to me some code.

Answer Source

In Manifest file add below code within the activity tag

<activity android:configChanges="orientation|screenSize|keyboard" />

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download