incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Warren (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-247) Error loading when loadUrl time is set on Kindle Fire
Date Thu, 16 Feb 2012 19:19:01 GMT

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

Jared Warren updated CB-247:
----------------------------

    Description: 
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}



  was:
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}
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)
{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}



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