Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14110] Android: Application restarts when orientation changes and targetSdkVersion is 16 or higher

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-06-06T20:58:57.000+0000
Affected Version/sRelease 3.1.0, Release 3.1.1, Release 3.2.0
Fix Version/s2013 Sprint 12 Core, 2013 Sprint 12
ComponentsAndroid
Labelsipass1, triage
ReporterManoj Kumar
AssigneeAllen Yeung
Created2013-06-04T05:46:21.000+0000
Updated2017-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>
 

Comments

  1. Daniel Sefton 2013-06-04

    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.
  2. Federico Casali 2013-06-06

    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
  3. Allen Yeung 2013-06-06

    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.
  4. Federico Casali 2013-06-06

    Confirming Bug behavior is not reproducible if instead the following is used:
       <android xmlns:android="http://schemas.android.com/apk/res/android">
         <manifest>
           <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16"/>
         </manifest>
       </android>
       
  5. Lee Morris 2017-03-23

    Closing ticket as invalid.

JSON Source