incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Warren (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-247) Error loading when loadUrl time is set on Kindle Fire
Date Thu, 09 Feb 2012 23:43:59 GMT
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


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;

{quote}
super.loadUrl("file:///android_asset/www/index.html",1000);
{quote}

The Error:
{quote}
E/AndroidRuntime(24154): FATAL EXCEPTION: main
E/AndroidRuntime(24154): java.lang.NullPointerException
E/AndroidRuntime(24154): 	at com.phonegap.DroidGap.sendJavascript(DroidGap.java:967)
E/AndroidRuntime(24154): 	at com.phonegap.LinearLayoutSoftKeyboardDetect.onMeasure(LinearLayoutSoftKeyboardDetect.java:96)
E/AndroidRuntime(24154): 	at android.view.View.measure(View.java:8313)
E/AndroidRuntime(24154): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
E/AndroidRuntime(24154): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
E/AndroidRuntime(24154): 	at android.view.View.measure(View.java:8313)
E/AndroidRuntime(24154): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
E/AndroidRuntime(24154): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
E/AndroidRuntime(24154): 	at android.view.View.measure(View.java:8313)
E/AndroidRuntime(24154): 	at android.view.ViewRoot.performTraversals(ViewRoot.java:1094)
E/AndroidRuntime(24154): 	at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
E/AndroidRuntime(24154): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(24154): 	at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(24154): 	at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(24154): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(24154): 	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(24154): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
E/AndroidRuntime(24154): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
E/AndroidRuntime(24154): 	at dalvik.system.NativeStart.main(Native Method)
{quote}

Work around:
{quote}
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);
}
{quote}



--
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