Android Crashes when calling Camera

85 views
Skip to first unread message

Greg Avola

unread,
Jan 3, 2012, 10:46:36 AM1/3/12
to phonegap
Hello everyone,

I've been getting this error pretty consistently through the Market -
but I can't replicate it on my 2 android devices (2.2, 2.3.3)

java.lang.NullPointerException
at com.phonegap.DroidGap
$LinearLayoutSoftKeyboardDetect.onMeasure(DroidGap.java:1705)
at android.view.View.measure(View.java:10840)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10840)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
1284)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10840)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.onMeasure(PhoneWindow.java:2043)
at android.view.View.measure(View.java:10840)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1209)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2020)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4028)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:844)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)

Anyone have any luck with this one? I'm running PG 1.3.

Thanks,
Greg

Simon MacDonald

unread,
Jan 3, 2012, 10:59:43 AM1/3/12
to phon...@googlegroups.com
I put in a patch to fix this issue but it was post the release of 1.3.0.

https://github.com/callback/callback-android/commit/fae551f0cea22c9843911cdcc2472b4e8135c93d

Simon Mac Donald
http://hi.im/simonmacdonald

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Greg Avola

unread,
Jan 3, 2012, 11:11:41 AM1/3/12
to phonegap
Hey Simon,

Any chance you can post a link to the JS / JAR for those don't know
how to compile the source? Or perhaps a link to an article that
outlines how to do it?

Thanks,
Greg

On Jan 3, 10:59 am, Simon MacDonald <simon.macdon...@gmail.com> wrote:
> I put in a patch to fix this issue but it was post the release of 1.3.0.
>
> https://github.com/callback/callback-android/commit/fae551f0cea22c984...
>
> Simon Mac Donaldhttp://hi.im/simonmacdonald

Bryce Curtis

unread,
Jan 3, 2012, 4:05:05 PM1/3/12
to phon...@googlegroups.com
Greg,

You can get today's jar and js files from
https://github.com/brycecurtis/phonegap-nightly/tree/master/Android-1.3.0-20120103-143152

Regards,
Bryce

Reply all
Reply to author
Forward
0 new messages