1

I was using startLockTask() in a program but found out it could only be used for Android L. However I want my application to function in versions lower then 5.

Is there any way I can gain similar functionality?

epiclapser
  • 271
  • 4
  • 12

1 Answers1

1

Functionally, no. The point of screen pinning is to prevent the user from leaving your app. The user can't see or click on notifications, or use the home button to leave.

Visually, you can set the app to full screen,, and/or hide notification bar. You can also hide the soft keys on devices that don't have hardware buttons. However, people can always bring it back up.

EDIT: You can also disable the back button.

Community
  • 1
  • 1
DeeV
  • 35,865
  • 9
  • 108
  • 95
  • Do you think that if I release an app specifically for Lollipop that I would get a considerable amount of downloads if it costs 99 cents – epiclapser Jan 25 '15 at 20:18
  • Not right now. Lollipop currently has < 0.1% of the userbase. Although HTC and Samsung are going to update their phones within the next year as well as release a bunch of new flagships, so it shouldn't discourage you to make it if screen pinning is absolutely needed. (It'll give you time to iron out all the wrinkles). – DeeV Jan 25 '15 at 20:22
  • Right I'll get to that, I can wait, I'm developing to fund an around the world trip in maybe 5 years, but this is all I can do as a high schooler – epiclapser Jan 25 '15 at 20:25