FireZenk / AudioWaves

Shows a graphic representation of the sounds captured by the microphone on Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use the library in my android project due to some limitations and bugs. (ver1.1)

edesdan opened this issue · comments

Hi,
I'd love to use your library in my android app but I have played a little bit with it and I found some problems.

The first is connected to the issue #1 :

  • starting with Android 5.0 we have to manage the runtime permissions and so, due to the fact that your widget uses the microphone when the layout gets inflated, it will fails every time you starts the app on Android 5.0 (the first time you don't have any permission like RECORD_AUDIO when you start the app the first time ). Have you ever try the library in this scenario?

The second is connected to the issue #3 :

  • I think the point here is that if the widget starts to use the microphone when it gets inflated (method prepare()) you will never had the possibility to use the microphone for something else like in my case a voice recognition activity. It could be ideal to have the possibility to start and stop the entire service whenever we need to avoid multiple concurrency on the same resource (microphone). And by the way even with the current implementation it seems that the stopListening() method is not working at all.

I like the graphical part, I think is one of the best "on the market" at the moment (maybe the only one) so I really appreciate your work. Do you think we can improve it? Let me know if you need help, I will be happy to give you an hand!

Thanks!

Hi @edesdan , yes I consider the #1 issue, I'm waiting to start my vacation to continue the support of my various open-source projects, regarding issue #3 is hard to find a solution but I'll try.

Any update on this? Can't use the library in it's current format due to the runtime permissions issue. Thanks