incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-247) Error loading when loadUrl time is set on Kindle Fire
Date Thu, 15 Mar 2012 21:32:37 GMT

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

Joe Bowser resolved CB-247.
---------------------------

    Resolution: Fixed
      Assignee: Joe Bowser  (was: Jesse MacFadyen)

Got Jesse's Kindle Fire, for some reason the screen is resized before anything else happens.
 This will always cause an error if you delay your HTML load, since the Callback Server will
not have been created yet.
                
> 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: Joe Bowser
>             Fix For: 1.6.0
>
>
> 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