hbldh / bleak

A cross platform Bluetooth Low Energy Client for Python using asyncio
MIT License
1.78k stars 294 forks source link

Support Android with Flet #1643

Open gunaNeelamegam opened 2 weeks ago

gunaNeelamegam commented 2 weeks ago

Cannot able to you bleak with flet.

dlech commented 1 week ago

I didn't see anything in Flet that allows calling android APIs, so this doesn't seem like it would be feasible at this point in time.

gunaNeelamegam commented 1 week ago

But, they referred we can able to compile and include the .so file. I tried with different approach I think we need to dynamically load the custom java class right now in the blesk it's static for using the custom java classes.

https://flet.dev/docs/publish/android/

On Sat, 5 Oct, 2024, 11:50 pm David Lechner, @.***> wrote:

I didn't see anything in Flet that allows calling android APIs, so this doesn't seem like it would be feasible at this point in time.

— Reply to this email directly, view it on GitHub https://github.com/hbldh/bleak/issues/1643#issuecomment-2395171731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5UXUGZD4NZHV74E4UDTNDZ2A7JBAVCNFSM6AAAAABPALPXZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGE3TCNZTGE . You are receiving this because you authored the thread.Message ID: @.***>

dlech commented 1 week ago

Ok, so Flet is using Python4Android. So it seems like it should just work then.

condition env is not exists.

Are you saying that the P4A_BOOTSTRAP environment variable is not set?

gunaNeelamegam commented 1 week ago

Not only that we need use the java custom classes based on project package right now it's static.

On Sun, 6 Oct, 2024, 6:46 pm David Lechner, @.***> wrote:

Ok, so Flet is using Python4Android. So it seems like it should just work then.

condition env is not exists.

Are you saying that the P4A_BOOTSTRAP environment variable is not set?

— Reply to this email directly, view it on GitHub https://github.com/hbldh/bleak/issues/1643#issuecomment-2395466133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5UXUA63AJ7YVCOLE4S2RLZ2FEMNAVCNFSM6AAAAABPALPXZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGQ3DMMJTGM . You are receiving this because you authored the thread.Message ID: @.***>