Reputation: 1
i am working on Application like surelock i have prevent the status bar to pull down in my application. i have list off all installed applications. Is it possible to prevent the status bar to pull down for all other applications also? Mean user open any application from my app and he should be unable to pull down the status bar even he is using another application
Upvotes: 0
Views: 85
Reputation: 648
If I understand what you're asking correctly, it sounds like what you're trying to do would fall into a category of things that the SDK would not allow.. You can, however, HIDE the status bar.. But for you to write an App that (A) runs in the background, and (B) locks the user from utilizing their own system status bar, or pulling it down - would be considered malicious. It may (or may not) be possible with a ROOTED device, and your App being used as a THIRD-PARTY App - but (A) it wouldn't be allowed on the PlayStore, (B) user's would be very unhappy if you locked the status bar, (C) Nobody here on StackOverflow would help you to do this, even if it's possible, which (C) I highly doubt it's possible.
You could, however, HIDE the status bar, or run your App in full-screen mode, if needed.
But do you mind me asking why exactly you're trying to "lock" the status bar?
What is it that you're trying to achieve by doing this?
Upvotes: 1