[android-developers] Test if screenlock is enabled

2012-10-26 Thread AMetnik
I need to check if this app has security (screenlocks), enabled. I have found out how to check for pattern_locks like this boolean b = android.provider.Settings.Secure.getInt( getContentResolver(),Settings.Secure.LOCK_PATTERN_ENABLED, 0)==1; But the other two evades

[android-developers] Android AudioRecord - Won't Initialize 2nd time

2011-03-02 Thread AMetnik
Hej, im currently trying to get AudioRecord to work. Because I need it in a bigger project. But it seems to mess up a lot. I have been trying alot of things, so I went back to basic when I traced this bug. I am using my Samsung Galaxy S as my debug-device. My problem is, first time after a