Plyer "flash" cannot run

70 views
Skip to first unread message

tomokazu ogata

unread,
Jun 2, 2023, 11:36:49 AM6/2/23
to Kivy users support
Hi everyone !

I'm trying to use 'flash' on-off function in "Plyer" module to my app.
But my code got below error.
"jnius.jnius.JavaException: JVM exception occurred: setTorchMode:2007: Camera "0" does not have a flash unit java.lang.IllegalArgumentException"

In this time, I used new "Plyer" after modefied by Ms. oukiar.

If you have any idea, please reply.

Thanks in advance.
Tomokazu Ogata

Robert

unread,
Jun 2, 2023, 12:52:02 PM6/2/23
to Kivy users support
Plyer is not well maintained, don't waste your time.

c4k has features to use the flash or torch.

tomokazu ogata

unread,
Jun 3, 2023, 6:49:22 AM6/3/23
to kivy-...@googlegroups.com
Hi Robert !

Thanks for your reply and info.

c4k mean “Camera4Kivy” , right ?

OK. I will try.

Thank you,
Tomokazu Ogata

2023/06/03 1:52、Robert <planckp...@gmail.com>のメール:

-- 
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/PV-OfAIPDIQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/456d9384-bbd6-48da-9358-86e9cd4159e0n%40googlegroups.com.

tomokazu ogata

unread,
Jun 3, 2023, 11:30:01 AM6/3/23
to kivy-...@googlegroups.com
Hi Robert !

This is Ogata again.

I tried c4k for using torch.
But I got another below error.

“jnius.jnius.JavaException: JVM exception occurred: Didn't find class "org.kivy.camerax.CameraX" on path”

In this case, should I use “p4a.hook = camerax_provider/gradle_options.py” on buildozer.spec ?

If I use this, next error will occur by using for android.api level lower than 33…
(Already I tried)

If you have any idea, please teach me.

Best regards,
Tomokazu Ogata

 
2023/06/03 19:49、tomokazu ogata <ogat...@gmail.com>のメール:

Robert

unread,
Jun 3, 2023, 12:58:16 PM6/3/23
to Kivy users support
> In this case, should I use “p4a.hook = camerax_provider/gradle_options.py” on buildozer.spec ?

Yes, you should follow the instructions.

>f I use this, next error will occur by using for android.api level lower than 33…

Who can know? You don't say what you see.

tomokazu ogata

unread,
Jun 4, 2023, 5:33:09 AM6/4/23
to kivy-...@googlegroups.com
Hi Robert !

> Yes, you should follow the instructions.

OK. I see.

I will try again.

Thanks,
Tomokazu Ogata


2023/06/04 1:58、Robert <planckp...@gmail.com>のメール:

Reply all
Reply to author
Forward
0 new messages