securityexception - how to disable status bar in android -


I am working on the Message app, I want to disable the status bar, it should be shown, but it is tactile is not.

I have tried the code below: In Activity:

StatusBird Manager mStatusBarManager = (StatusBarManager) getSystemService (event.status_BAR_SERVICE);

mStatusBarManager.disable (StatusBarManager.DISABLE_EXPAND);

I also added permission to the manifest:

But I am getting the following error:

Reason by: java.lang.SecurityException: StatusBarManagerService: no So user is 10004 and neither isroid.permission.STATUS_BAR in the current process.

Resolve! By adding Android: Shared user ID = Android and M.M. file in Android.mk file = LOCAL_CERTIFICATE = platform

in MANIFEST files

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -