(Code Correction) Android get correct Amplitude

Avg Bid (EUR)
Project Budget (EUR)
€8 - €30

Project Description:
I am writing an Activity that will record audio using Android's AudioRecord. I need two forms of output, I want to record audio live from MIC source and then output the Amplitude in Log.d. I have been experimenting with two forms of code but the real problem is that I do no really understand what is going on and so therefore can not trouble shoot it.

I would like the code fixed please and the output to the Log in dB please. Heavily comment your work.

This is a code correction and not a full project.

Additional Project Description:
01/15/2014 at 10:29 EST
Payment will be completed upon testing of the code in my Eclipse.

Note: I was certain that the original data stored int he buffer would be in Pascals, then to convert to Decibels should have been easy. Now I am not sure it is Pascals anymore.

Skills required:
Android, Java
Additional Files: SnoreSensor.java
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

€ 206
in 1 days
€ 105
in 3 days
Hire pinbar
€ 30
in 1 days
Hire dcZCLGZbXwux
€ 23
in 1 days