Android get sound recording volume
im trying to find a simple way to record audio to analyse it for its amplitude (volume) - nothing else. MediaRecorder.getMaxAmplitude() always returns 0 on my smartphone (Android 2.3.6, Galaxy S1 Plus), which is the case for many ppl (found a lot of references on stackoverflow). Funny thing is, it records the audio properly into a file with my voice on it...doenst make sense. On another smartphone (Galaxy S3 mini) the same code is working so it cant be a programming error... I also tried the musicg library, but not even the whistle demo of that library is detecting anything... Next thing i've tried was recording with AudioRecord class. Well, i get a stream of data then, but i got no idea what to do with that numbers - i dont see a way to get the volume out of that... As already said, i only need the volume of the sounds in my surroundings. Thanks in advance for your suggestions.
setting contact number to edittext in android
When are SharedPreferences deleted?
What is the context in Async task
clear missed calls and clear notification from android bar
whole viewgroup to bitmap
Corona will generate native code?
Android GCM SSLException
there is any way to save my shared preferences data into sqlite database in android
Notification in android add two notification
Android: nine-patch is centered on one device, but moves somewhat to the right on another
Android: is it possible to remove a system-managed notification programmatically?
How to use saved instance state and restore instance state?
Creating and distributing jar files in Android
android - list adapter problems
android make a listview un-scrollable
android - how can I get time in sleep