I am developing app for background videorecording ,thats why i used WindowManager,but it did not worked for me.gives following errors:
08-
08-23 15:38:21.021: E/AndroidRuntime(4200): Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@418c0b68 -- permission denied for this window type
Problem: Permission missing in maifest file.
Solution:
Use following permission in AndroidManifest.
android.permission.SYSTEM_ALERT_WINDOW