agreensh
agreensh
Seems to be an incorrect error return, should be that READ_EXTERNAL_STORAGE is not granted. On 24 Aug 2019, 11:54 +0100, mtkgeek , wrote: > The MusicFinder.allSongs(); is throwing the above...
Same error. E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): Failed to handle method call E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): java.lang.RuntimeException: getParameters failed (empty parameters) E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.hardware.Camera.native_getParameters(Native Method) E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at android.hardware.Camera.getParameters(Camera.java:1952) E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at plugins.flutter.lamp.lamp.LampPlugin.turn(LampPlugin.java:63) E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at plugins.flutter.lamp.lamp.LampPlugin.onMethodCall(LampPlugin.java:34) E/MethodChannel#github.com/clovisnicolas/flutter_lamp(14908): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)...
> 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...
I haven't closed this issue as, even though I've worked around it, it is still an issue with this package (flutter_lamp).
I wrote my own plugin which works.
> Care to share? I've incorporated the lamp functionality in my "utils" plugin (so it has lots of other stuff), but I can share the code for the lamp/torch if...
I've tested this plugin on iOS 10.0.0 up to 12.1.1 and Android up to Oreo (on a Samsung) and Nougat (on a Motorola). Works for me. [torch.zip](https://github.com/clovisnicolas/flutter_lamp/files/2683571/torch.zip)
Put the 'torch' directory at the same level as your project, then in pubspec.yaml (of your project) add ``` torch: path: ../torch ``` then in dart file where you want...