[TIMOB-14110] Android: Application restarts when orientation changes and targetSdkVersion is 16 or higher
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-06-06T20:58:57.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.1.1, Release 3.2.0 |
Fix Version/s | 2013 Sprint 12 Core, 2013 Sprint 12 |
Components | Android |
Labels | ipass1, triage |
Reporter | Manoj Kumar |
Assignee | Allen Yeung |
Created | 2013-06-04T05:46:21.000+0000 |
Updated | 2017-03-23T21:30:24.000+0000 |
Description
*Problem*
This is the same issue as TIMOB-10863 but with API level 16.
*Steps to reproduce*
Use the same steps and test case from TIMOB-10863 with the exception of the following Android XML.
*tiapp.xml*
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>8</tool-api-level>
<manifest>
<uses-sdk android:minSdkVersion="8"/>
<uses-sdk android:targetSdkVersion="16"/>
</manifest>
</android>
Tested and confirmed crash on Motorola RAZR XT890 Android 4.0.4 with Ti SDK 3.1 GA, 3.1.1 CI and 3.2 CI. Doesn't occur on Samsung Galaxy S2 2.3.6.
TiSDK 3.1.1.v20130606121419 and 3.1.0 GA Confirming the bug behavior on Google Nexus Galaxy 4.2.2 Not reproducible using LG-V909 Tablet OS 3.1
Marking this bug as invalid. There are two issues with this code. 1. Specifying tool-api-level will force Titanium to compile against 8, when you really want it to be 16. This causes the build to not include certain flags like 'screensize' in the android manifest that it generates. 2. There should only be one 'uses-sdk' node inside the android manifest. This is native android behavior. If you use ADT and try to add two nodes called 'uses-sdk', you will get errors saying that it's not valid.
Confirming Bug behavior is not reproducible if instead the following is used:
Closing ticket as invalid.