-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashlight not working on Android #6
Comments
Same error happened. |
Same error. E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): Failed to handle method call |
I have tried to make the example code work on a Nexus 5 running Nougat (7.1.2) without any luck. I have granted my application permissions to use the camera without affecting the outcome. The flash is working as I can toggle it from the dropdown menu. The only outcome I get in the terminal is the initial check: I have specified version |
If you need a solution now, look at Issue #7 and follow use of torch.zip plugin. |
I tried to make it work without any luck. I will try to document my steps to figure out where I went wrong. Thanks for the reply. Just a thought: have you considered closing this issue? |
I haven't closed this issue as, even though I've worked around it, it is still an issue with this package (flutter_lamp). |
Flash isn't working.
Tried to start on example - it gives an error:
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): Failed to handle method call
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): java.lang.RuntimeException: getParameters failed (empty parameters)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.hardware.Camera.native_getParameters(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.hardware.Camera.getParameters(Camera.java:2027)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at plugins.flutter.lamp.lamp.LampPlugin.turn(LampPlugin.java:63)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at plugins.flutter.lamp.lamp.LampPlugin.onMethodCall(LampPlugin.java:34)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:152)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.os.MessageQueue.next(MessageQueue.java:375)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.os.Looper.loop(Looper.java:225)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at android.app.ActivityThread.main(ActivityThread.java:6589)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
E/MethodChannel#github.com/clovisnicolas/flutter_lamp(31729): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
The text was updated successfully, but these errors were encountered: