Rotation

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Rotation

Postby bobcat » Wed Sep 02, 2009 2:05 pm

I have make an application that insert a marker on the map, but when i rotate telephone the application restart, this is very horrible because reset all information, i want save this start and resume with old information


@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}


how can I do?
bobcat
Freshman
Freshman
 
Posts: 6
Joined: Wed Apr 22, 2009 6:45 pm

Top

Postby marbalon » Fri Sep 04, 2009 12:04 pm

Hi,
Try to add this in your manifest file:

Code: Select all
android:configChanges="keyboardHidden|orientation"


Cheers,
Marcin.
marbalon
Junior Developer
Junior Developer
 
Posts: 12
Joined: Tue Aug 25, 2009 11:29 am

solved

Postby bobcat » Fri Sep 04, 2009 3:04 pm

Thank you very much, if you come at Rome I would like to offer you a beer or a coffe.
the solution for the other people is:

Code: Select all
   <activity android:name=".MappaMeteo"
                  android:label="@string/app_name"
              android:configChanges="keyboardHidden|orientation">
bobcat
Freshman
Freshman
 
Posts: 6
Joined: Wed Apr 22, 2009 6:45 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests