This tutorial explains how to detecting noise and setting a noise threshold , when this noise/sound frequency cross threshold ,example will show an alert. In this example broadcasting screen wake / sleep event with a service. Now follow the coding to develop this simple application 1.main.xml <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android :layout_width= "fill_parent" android :layout_height= "fill_parent" android :background= "@color/black" android :orientation= "vertical" > < TextView android :id= "@+id/status" android :layout_width= "wrap_content" android :layout_height= "wr...
Learn with Samples