java.lang.NoSuchMethodError: android.hardware.Camera.getNumberOfCameras

177 views
Skip to first unread message

Dmitry Trunikov

unread,
Dec 10, 2013, 10:23:37 AM12/10/13
to codenameone...@googlegroups.com
Hi ALL :)

My application throws:

java.lang.NoSuchMethodError: android.hardware.Camera.getNumberOfCameras

on some Android phone. The exception is thrown by this code:

Display display = Display.getInstance();
boolean camera = display.hasCamera();

I made test for two cellular phones.

This phone throws the exception:

Samsung GT-S5570
Android 2.2.1

This phone executes the application without any issue:

HTC Desire XS
Android 4.0.4
HTC Sense 4.1
HTC SDK API 4.24

Configuration file codename_settings.properties has following option:

codename1.arg.android.min_sdk_version=8

Any ideas?

TIA,
Dmitry

Shai Almog

unread,
Dec 10, 2013, 1:54:09 PM12/10/13
to codenameone...@googlegroups.com
Thanks, we'll fix this.
Reply all
Reply to author
Forward
0 new messages