incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (Assigned) (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CB-247) Error loading when loadUrl time is set on Kindle Fire
Date Tue, 06 Mar 2012 18:28:57 GMT

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

Joe Bowser reassigned CB-247:
-----------------------------

    Assignee: Jesse MacFadyen  (was: Joe Bowser)

Reminder: I need your Kindle Fire to test this!
                
> Error loading when loadUrl time is set on Kindle Fire
> -----------------------------------------------------
>
>                 Key: CB-247
>                 URL: https://issues.apache.org/jira/browse/CB-247
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0, 1.4.0
>         Environment: Android Kindle Fire
> Version 6.2.2
>            Reporter: Jared Warren
>            Assignee: Jesse MacFadyen
>
> Received the following error message when trying to launch an app on the Kindle Fire.
This only happens when the time parameter is set when calling loadUrl within DroidGap.onCreate.
For example;
> {code}
> super.loadUrl("file:///android_asset/www/index.html",1000);
> {code}
> The Error:
> {code}
> FATAL EXCEPTION: main
> java.lang.NullPointerException
> 	at com.phonegap.DroidGap.sendJavascript(DroidGap.java:967)
> 	at com.phonegap.LinearLayoutSoftKeyboardDetect.onMeasure(LinearLayoutSoftKeyboardDetect.java:96)
> 	at android.view.View.measure(View.java:8313)
> 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
> 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
> 	at android.view.View.measure(View.java:8313)
> 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
> 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
> 	at android.view.View.measure(View.java:8313)
> 	at android.view.ViewRoot.performTraversals(ViewRoot.java:1094)
> 	at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
> 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 	at android.os.Looper.loop(Looper.java:130)
> 	at android.app.ActivityThread.main(ActivityThread.java:3683)
> 	at java.lang.reflect.Method.invokeNative(Native Method)
> 	at java.lang.reflect.Method.invoke(Method.java:507)
> 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
> 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
> 	at dalvik.system.NativeStart.main(Native Method)
> {code}
> Work around:
> {code}
> if(android.os.Build.MODEL == "Kindle Fire"){
>     super.loadUrl("file:///android_asset/www/index.html");
> }
> else{
>     super.loadUrl("file:///android_asset/www/index.html",1000);
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message