lantern icon indicating copy to clipboard operation
lantern copied to clipboard

🏮[Android Library] Handling device flash as torch for Android.

Results 10 lantern issues
Sort by recently updated
recently updated
newest added

JFrog just announced that they'll be shutting down JCenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ Key dates are: February 28th: No more submissions will be accepted to Bintray, JCenter May 1st: Bintray, JCenter services will...

Hello friends, I tried to create a Flashlight app, it runs on Background too. In service, it asks "activity" as argument,how to pass it???

I get this error while testing with VIVO V15 1819: ``` java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2984) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3062) at android.app.ActivityThread.-wrap11 (Unknown Source) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1756) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop...

In the public constructor of Lantern class the **displayLightController** does not use **activityWeakRef** ```java public Lantern(Activity activity) { this.activityWeakRef = new WeakReference(activity); ... displayLightController = new DisplayLightControllerImpl(activityWeakRef); } ```

bug

In the constructor is needed to pass as parameter an activity. Is possible to have an improvement where is possible to instantiate without an activity? Thanks in advance.

enhancement

I get a crash on Android 9 and 7 > Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=6937, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.ytheekshana.deviceinfo/com.nabinbhandari.android.permissions.PermissionsActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0;...

bug

This is another crash. > Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=6937, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.ytheekshana.deviceinfo/com.nabinbhandari.android.permissions.PermissionsActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void...

小米6,MIUI9.6,android 8.0 打开闪光灯时,只闪一下,不能保持常亮

Can you please create a android X version

enhancement

Can someone test if `Fail to connect to camera service` was fixed on Redmi 3 Android v5.1.1 with Lantern v2?

help wanted