{ "id": "131104", "key": "TIMOB-17053", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-09-02T22:56:04.000+0000", "created": "2014-05-30T23:22:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_splashscreen", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "39353", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "81908", "key": "TIMOB-5856", "fields": { "summary": "Android: Landscape splash not appearing or appears stretched when device held in landscape during app launch", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:00:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Issue \r\n\r\nThe basic scenario is that customer need their app to be portrait for handhelds and landscape for tablets. The splash screens also need to appear properly based on those requirements, everything is working in a sample app with the exception of the splash screen on Portrait mode.\r\n\r\nh3. Steps to repro using attached app\r\n\r\n1. Hold a tablet in Portrait mode \r\n2. Open the app \r\n\r\nExpected result:\r\nThe splash screen will be displayed\r\n\r\nActual result:\r\nNo splash screen is displayed", "attachment": [ { "id": "48499", "filename": "rotationTest.zip", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-30T23:38:09.000+0000", "size": 4690965, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: tablet in portrait mode not showing splash screen", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK\t3.2.x\r\nPlatform OS Android", "closedSprints": [ { "id": 199, "state": "closed", "name": "2014 Sprint 18 SDK", "startDate": "2014-09-02T22:56:57.421Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:19.146Z", "originBoardId": 114 }, { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 }, { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "309169", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I can see the splash screen working in a tablet both in landscape and portrait mode. In a phone, the splash screen is hard to see as the activity get rotated to landscape as the phone is locked for portrait mode but you can clearly see the splash screen when you launch recent apps in landscape and launch the app from there.\r\nI don't think this is a bug.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-16T18:43:16.000+0000", "updated": "2014-06-16T18:43:16.000+0000" }, { "id": "310217", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rtlechuga] Thoughts on [~sunila]'s comment?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T17:55:22.000+0000", "updated": "2014-06-20T17:55:22.000+0000" }, { "id": "311286", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sunila] can you confirm what tablet you are using? Also you are using the test app associated with this ticket? Finally, please confirm you are starting the app in portrait mode and then it launches in landscape mode.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-27T15:26:41.000+0000", "updated": "2014-06-27T15:26:41.000+0000" }, { "id": "311523", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried with my Motorola zoom tablet. No, I didn't try with the test app, I created a new classic sample app and tried. I will try with the sample app and let you know my findings.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-29T17:04:29.000+0000", "updated": "2014-06-29T17:04:29.000+0000" }, { "id": "312595", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried with the sample and since the 'screenOrientation' is set to 'nosensor' in the tiApp.xml, even if I keep the tablet in portrait, it switches to landscape (as the default is landscape for most of the tablets and portrait for most of the phones) and it is hard to see the splash screen because of this. I don't think this is a bug, Because of the orientation change, the splash screen is hard to see. Try changing the 'screenOrientation' to 'sensor' and you will see the splash screen.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-07T17:35:17.000+0000", "updated": "2014-07-07T17:35:17.000+0000" }, { "id": "312601", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The use case is that we have to use 'nosensor'. They want a single app that is locked in portrait for handheld and landscape for tablet, including proper splash screens. This was the only way we could find to achieve this. If you have another suggestion that will work, we can use sensor, but otherwise we need to see the proper splash screen regardless what orientation the device is in when the app is opened.", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-07T17:47:49.000+0000", "updated": "2014-07-07T17:47:49.000+0000" }, { "id": "312846", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I didn't know about this use case. Here is what you can try, instead of specifying the 'screenOrientation' in the the manifest file, do this through the code, something like\r\n\r\n{code}\r\n var win = Titanium.UI.createWindow({ \r\n\t title:'Sound Bug',\r\n\t fullscreen: true,\r\n\t exitOnClose: true \r\n\t});\r\n\tvar lbl = Ti.UI.createLabel({\r\n\t\ttext: \"Sample Project\"\r\n\t\t});\r\n\t\r\n\twin.add(lbl);\r\n\twin.addEventListener(\"open\", function(e){\r\n\t\tif (isTablet) {\r\n\t\t\twin.getActivity().setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_LANDSCAPE);\r\n\t\t} else {\r\n\t\t\twin.getActivity().setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT);\r\n\t\t}\r\n\t\t})\r\n\twin.open();\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-08T16:42:02.000+0000", "updated": "2014-07-22T21:42:08.000+0000" }, { "id": "313995", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce the issue on Galaxy Tab (3.2). The splash screen shows consistently in portrait mode.\r\nCan reproduce the issue on Nexus 10 (4.2). The splash screen shows intermittently in portrait mode.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-14T22:59:39.000+0000", "updated": "2014-07-15T18:08:59.000+0000" }, { "id": "315710", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried on a Nexus 7 and a Nexus 10, and the splash screen always shows up correctly for me. On the nexus 10, if I have it in portrait, it is forced to be in landscape. On a nexus 7, it was the opposite which is the expected behavior. I did have a hard time seeing the splash screen most of the time since the app loads so fast. I had to artificially delay the splash screen to confirm that it was loading right.... In a simple alloy app, I just delayed opening the window:\r\n\r\n{code}\r\nsetTimeout(function (){\r\n\t$.index.open();\r\n},3000)\r\n{code}", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-24T22:32:28.000+0000", "updated": "2014-07-24T22:32:28.000+0000" }, { "id": "320595", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If I understand correctly, this issue is just because the splash screen is showing up too quickly, not that there is an inherent bug. Please let me know if that's not your understanding.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T16:47:47.000+0000", "updated": "2014-08-27T16:47:47.000+0000" }, { "id": "414026", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:00:01.000+0000", "updated": "2017-03-20T22:00:01.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }