[TIMOB-17053] Android: tablet in portrait mode not showing splash screen
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-09-02T22:56:04.000+0000 |
Affected Version/s | Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | module_splashscreen, qe-testadded, supportTeam |
Reporter | Marco Cota |
Assignee | Allen Yeung |
Created | 2014-05-30T23:22:06.000+0000 |
Updated | 2017-03-20T22:00:01.000+0000 |
Description
Issue
The 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.
Steps to repro using attached app
1. Hold a tablet in Portrait mode
2. Open the app
Expected result:
The splash screen will be displayed
Actual result:
No splash screen is displayed
Attachments
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. I don't think this is a bug.
[~rtlechuga] Thoughts on [~sunila]'s comment?
[~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.
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.
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.
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.
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
Cannot reproduce the issue on Galaxy Tab (3.2). The splash screen shows consistently in portrait mode. Can reproduce the issue on Nexus 10 (4.2). The splash screen shows intermittently in portrait mode.
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:
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.
Closing ticket as invalid.