android program hangs before onCreate is called (beginner)
问题 I needed some sample code to test out the AudioRecord class and I came across this website LINK TO THE SOURCE CODE However the program doesn't run, and hangs after a while. When the program starts it gives blank screen and does not do anything, and after a while a message box pops up saying the program is not responding and whether I want to close it. So I added Toast.makeText(getApplicationContext(), "HERE", Toast.LENGTH_SHORT).show(); as the first line of onCreate() in MainActivity , but