Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17053] Android: tablet in portrait mode not showing splash screen

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-09-02T22:56:04.000+0000
Affected Version/sRelease 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsmodule_splashscreen, qe-testadded, supportTeam
ReporterMarco Cota
AssigneeAllen Yeung
Created2014-05-30T23:22:06.000+0000
Updated2017-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

FileDateSize
rotationTest.zip2014-05-30T23:38:09.000+00004690965

Comments

  1. Sunila 2014-06-16

    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.
  2. Ingo Muschenetz 2014-06-20

    [~rtlechuga] Thoughts on [~sunila]'s comment?
  3. Alan Leard 2014-06-27

    [~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.
  4. Sunila 2014-06-29

    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.
  5. Sunila 2014-07-07

    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.
  6. Alan Leard 2014-07-07

    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.
  7. Sunila 2014-07-08

    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
             var win = Titanium.UI.createWindow({  
       	    title:'Sound Bug',
       	    fullscreen: true,
       	    exitOnClose: true    
       	});
       	var lbl = Ti.UI.createLabel({
       		text: "Sample Project"
       		});
       	
       	win.add(lbl);
       	win.addEventListener("open", function(e){
       		if (isTablet) {
       			win.getActivity().setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_LANDSCAPE);
       		} else {
       			win.getActivity().setRequestedOrientation(Ti.Android.SCREEN_ORIENTATION_PORTRAIT);
       		}
       		})
       	win.open();
       
  8. Ping Wang 2014-07-14

    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.
  9. Allen Yeung 2014-07-24

    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:
       setTimeout(function (){
       	$.index.open();
       },3000)
       
  10. Ingo Muschenetz 2014-08-27

    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.
  11. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source