Why android 5.0 occur error java.lang.RuntimeException: start smooth zoom failed? -


this code set zoom of camera: // 10 set zoom value camera

                if (p.iszoomsupported() && p.issmoothzoomsupported()) {                     // phones                     mcamera.startsmoothzoom(zoomvalue);                 } else if (p.iszoomsupported() && !p.issmoothzoomsupported()) {                     p.setzoom(zoomvalue);                     mcamera.setparameters(p);                     mcamera.setparameters(p);                     mcamera.startpreview();                 } 

but occur exception on canvas spark (q380) android 5.0:

java.lang.runtimeexception: start smooth zoom failed     @ android.hardware.camera.startsmoothzoom(native method)     jat android.app.activity.dispatchtouchevent(activity.java:2775)     @ com.android.internal.policy.impl.phonewindow$decorview.dispatchtouchevent(phonewindow.java:2326)     @ android.view.view.dispatchpointerevent(view.java:8687)     @ android.view.viewrootimpl$viewpostimeinputstage.processpointerevent(viewrootimpl.java:4485)     @ android.view.viewrootimpl$viewpostimeinputstage.onprocess(viewrootimpl.java:4343)     @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3884)     @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3937)     @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3903)     @ android.view.viewrootimpl$asyncinputstage.forward(viewrootimpl.java:4013)     @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3911)     @ android.view.viewrootimpl$asyncinputstage.apply(viewrootimpl.java:4070)     @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3884)     @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3937)     @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3903)     @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3911)     @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3884)     @ android.view.viewrootimpl.deliverinputevent(viewrootimpl.java:6300)     @ android.view.viewrootimpl.doprocessinputevents(viewrootimpl.java:6256)     @ android.view.viewrootimpl.enqueueinputevent(viewrootimpl.java:6209)     @ android.view.viewrootimpl$windowinputeventreceiver.oninputevent(viewrootimpl.java:6462)     @ android.view.inputeventreceiver.dispatchinputevent(inputeventreceiver.java:185)     @ android.view.inputeventreceiver.nativeconsumebatchedinputevents(native method)     @ android.view.inputeventreceiver.consumebatchedinputevents(inputeventreceiver.java:176)     @ android.view.viewrootimpl.doconsumebatchedinput(viewrootimpl.java:6421)     @ android.view.viewrootimpl$consumebatchedinputrunnable.run(viewrootimpl.java:6493)     @ android.view.choreographer$callbackrecord.run(choreographer.java:795)     @ android.view.choreographer.docallbacks(choreographer.java:598)     @ android.view.choreographer.doframe(choreographer.java:565)     @ android.view.choreographer$framedisplayeventreceiver.run(choreographer.java:781)     @ android.os.handler.handlecallback(handler.java:810)     @ android.os.handler.dispatchmessage(handler.java:99)     @ android.os.looper.loop(looper.java:189)     @ android.app.activitythread.main(activitythread.java:5529)     @ java.lang.reflect.method.invoke(native method)     @ java.lang.reflect.method.invoke(method.java:372)     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:950)     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:745) 

why android 5.0 occur error java.lang.runtimeexception: start smooth zoom failed?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -