I have been working on a mobile application for Android. I used the android template provided by profound ui and everything was working well on android 3.0.
I recently updated to android 4.0.3. Now when I launch the app, it runs, but as soon as I rotate the device it crashes.
Mobile app crashes on orientation change
-
- Profound User
- Posts: 91
- Joined: Fri Aug 03, 2012 11:07 am
- First Name: Paul
- Last Name: Ramcharitar
- Company Name: Banks DIH
- City: Georgetown
- Zip / Postal Code: 592
- Country: Guyana
- Contact:
-
- Profound User
- Posts: 91
- Joined: Fri Aug 03, 2012 11:07 am
- First Name: Paul
- Last Name: Ramcharitar
- Company Name: Banks DIH
- City: Georgetown
- Zip / Postal Code: 592
- Country: Guyana
- Contact:
Re: Mobile app crashes on orientation change
After much searching, I found a solution to this problem.
I needed to add "screenSize" to android:configChanges in each Activity tag within the AnroidManifest.xml. So it would be like this: android:configChanges="orientation|screenSize|keyboardHidden"
The reason behind this is explained in this post: http://groups.google.com/group/phonegap ... fc4dd9daaf
I needed to add "screenSize" to android:configChanges in each Activity tag within the AnroidManifest.xml. So it would be like this: android:configChanges="orientation|screenSize|keyboardHidden"
The reason behind this is explained in this post: http://groups.google.com/group/phonegap ... fc4dd9daaf
-
- Profound User
- Posts: 82
- Joined: Fri Jun 29, 2012 2:33 pm
- First Name: Antonio
- Last Name: Ruballos
- Company Name: Profound Logic
- Contact:
Re: Mobile app crashes on orientation change
Thanks Paul!
I added this change to the Android Manifest file included in the template project, to prevent future users from experiencing this problem.
I added this change to the Android Manifest file included in the template project, to prevent future users from experiencing this problem.
-
- Profound User
- Posts: 91
- Joined: Fri Aug 03, 2012 11:07 am
- First Name: Paul
- Last Name: Ramcharitar
- Company Name: Banks DIH
- City: Georgetown
- Zip / Postal Code: 592
- Country: Guyana
- Contact:
Re: Mobile app crashes on orientation change
OK great, glad to help!
Who is online
Users browsing this forum: Ahrefs [Bot] and 7 guests