Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 13775200BE9 for ; Mon, 26 Dec 2016 15:34:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 12116160B3B; Mon, 26 Dec 2016 14:34:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5D2FE160B2A for ; Mon, 26 Dec 2016 15:33:59 +0100 (CET) Received: (qmail 24569 invoked by uid 500); 26 Dec 2016 14:33:58 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 24558 invoked by uid 99); 26 Dec 2016 14:33:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2016 14:33:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 51FC42C0453 for ; Mon, 26 Dec 2016 14:33:58 +0000 (UTC) Date: Mon, 26 Dec 2016 14:33:58 +0000 (UTC) From: "Sergey Shakhnazarov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12277) Android, "SplashShowOnlyFirstTime"=true, crashes the app after re-opening it MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 26 Dec 2016 14:34:00 -0000 [ https://issues.apache.org/jira/browse/CB-12277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15778420#comment-15778420 ] Sergey Shakhnazarov commented on CB-12277: ------------------------------------------ [~musahaidari], I cannot reproduce this in a Cordova blank app with master (Github) version and Android 6 emulator. Could you upload a minimal failing project? > Android, "SplashShowOnlyFirstTime"=true, crashes the app after re-opening it > ---------------------------------------------------------------------------- > > Key: CB-12277 > URL: https://issues.apache.org/jira/browse/CB-12277 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin SplashScreen > Affects Versions: 4.0.1 > Environment: Windows 7 x64, engine Android 6, ionic CLI 2.1.17, ionic 2 RC4 > Reporter: Musa Haidari > Priority: Blocker > Original Estimate: 2h > Remaining Estimate: 2h > > The app shows the splash screen on start. I want to close it programatically using this.platform.exitApp(); and after opening it again, I want the splash screen to apear again. The default behavoiur is to show the splash screen for the first run only, and if we close it the way mentioned, the subsequent openings will not show the splash screen. > To override that I used . Using this, the app shows splash screen for the first time and when close the app as mentioned, and try opening it again, while it is still available in recent apps, the app crashes most of the times reporting this in ADB: > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: FATAL EXCEPTION: main > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: Process: com.mydomain.myapp, PID: 30375 > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setAnimation(android.view.animation.Animation)' on a null object reference > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at org.apache.cordova.splashscreen.SplashScreen$4.run(SplashScreen.java:227) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at android.app.Activity.runOnUiThread(Activity.java:6050) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen(SplashScreen.java:217) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at org.apache.cordova.splashscreen.SplashScreen.access$1000(SplashScreen.java:49) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at org.apache.cordova.splashscreen.SplashScreen$5$1.run(SplashScreen.java:330) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) > 12-20 09:35:50.851 30375 30375 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org