[ https://issues.apache.org/jira/browse/CB-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705522#comment-13705522 ]
Peter commented on CB-4129: --------------------------- Yes, that was the point. It never _used_ to be necessary to specify a splashscreen in the project, and so the mobile-spec test would just work straight out-of-the-box. Why not say: {code} if (that.splashscreen != 0) { root.setBackgroundResource(that.splashscreen); } {code} so then the test works ok regardless if there is a configured splashscreen or not. Works for me. *OR* If this really is a pre-requisite for anyone to run this test, then the JIRA issue is that the wiki does not say so. See http://wiki.apache.org/cordova/RunningTests (at the bottom of the page) > Splashscreen mobile-spec test broken in v2.9 (Android) > ------------------------------------------------------ > > Key: CB-4129 > URL: https://issues.apache.org/jira/browse/CB-4129 > Project: Apache Cordova > Issue Type: Bug > Components: Android, mobile-spec > Affects Versions: 2.9.0 > Environment: Galaxy Nexus emulator > Reporter: Peter > Assignee: Joe Bowser > Priority: Minor > > The cordova-mobile-spec manual splashscreen test doesn't work anymore. > In v2.7.0 the screen would go black for 1 or 5 seconds. In v2.9 nothing > happens at all. > I think the problem is introduced by this line in CordovaActivity.java: > {code} > root.setBackgroundResource(that.splashscreen); > {code} > The mobile-spec test does not have any special splashscreen resource > configured so the default is 0. > But 0 has a special meaning for setBackgroundResource > http://developer.android.com/reference/android/view/View.html#setBackgroundResource%28int%29 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira