[jira] [Resolved] (CB-8345) Splash screen does not display on Android.

2015-03-24 Thread Andrew Grieve (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Grieve resolved CB-8345.
---
Resolution: Fixed

Fixed in 1.0.1-dev

 Splash screen does not display on Android.
 --

 Key: CB-8345
 URL: https://issues.apache.org/jira/browse/CB-8345
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaLib
 Environment: OS: Ubuntu 14.04 LTS/x64
 Node.js: 0.10.35
 Cordova: 4.2.0
Reporter: Tomo Masakura
Assignee: Andrew Grieve

 Splash screen does not display on Android. On iOS it is displayed.
 {quote}
 $ cordova --version
 4.2.0
 $ cordova create project1
 $ cd project1
 $ cordova platform add android ios
 $ cordova emulate
 {quote}
 The iOS simulator splash screen is displayed. However, the Android Emulator 
 it is not displayed.
 It seems to be resolved by adding the following sentence to the config.xml, 
 but wanting to be displayed in the default state.
 {quote}
 preference name=SplashScreen value=screen /
 {quote}
 It seems to be solved by modifying the CordovaActivity.java.
 {quote}
 $ diff -Nur CordovaActivity.java.orig CordovaActivity.java
 --- CordovaActivity.java.orig   2015-01-22 16:39:42.0 +0900
 +++ CordovaActivity.java2015-01-22 16:39:56.0 +0900
 @@ -359,7 +359,7 @@
  init();
  }
  this.splashscreenTime = preferences.getInteger(SplashScreenDelay, 
 this.splashscreenTime);
 -String splash = preferences.getString(SplashScreen, null);
 +String splash = preferences.getString(SplashScreen, screen);
  if(this.splashscreenTime  0  splash != null)
  {
  this.splashscreen = getResources().getIdentifier(splash, 
 drawable, getClass().getPackage().getName());;
 {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-8345) Splash screen does not display on Android.

2015-02-17 Thread Andrew Grieve (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Grieve resolved CB-8345.
---
Resolution: Not a Problem

Yep, the splashscreen is disabled by default. To enable it, add:
{code}
preference name=SplashScreen value=splash /
{code}

to your config.xml

 Splash screen does not display on Android.
 --

 Key: CB-8345
 URL: https://issues.apache.org/jira/browse/CB-8345
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaLib
 Environment: OS: Ubuntu 14.04 LTS/x64
 Node.js: 0.10.35
 Cordova: 4.2.0
Reporter: Tomo Masakura
Assignee: Andrew Grieve

 Splash screen does not display on Android. On iOS it is displayed.
 {quote}
 $ cordova --version
 4.2.0
 $ cordova create project1
 $ cd project1
 $ cordova platform add android ios
 $ cordova emulate
 {quote}
 The iOS simulator splash screen is displayed. However, the Android Emulator 
 it is not displayed.
 It seems to be resolved by adding the following sentence to the config.xml, 
 but wanting to be displayed in the default state.
 {quote}
 preference name=SplashScreen value=screen /
 {quote}
 It seems to be solved by modifying the CordovaActivity.java.
 {quote}
 $ diff -Nur CordovaActivity.java.orig CordovaActivity.java
 --- CordovaActivity.java.orig   2015-01-22 16:39:42.0 +0900
 +++ CordovaActivity.java2015-01-22 16:39:56.0 +0900
 @@ -359,7 +359,7 @@
  init();
  }
  this.splashscreenTime = preferences.getInteger(SplashScreenDelay, 
 this.splashscreenTime);
 -String splash = preferences.getString(SplashScreen, null);
 +String splash = preferences.getString(SplashScreen, screen);
  if(this.splashscreenTime  0  splash != null)
  {
  this.splashscreen = getResources().getIdentifier(splash, 
 drawable, getClass().getPackage().getName());;
 {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org