android-screen-pinning

How to build software limiting user action to one single App on Android?

戏子无情 提交于 2019-12-04 14:36:59
I want to build an app for android and ensure that the user can only use this app. (i.e. user should not be able to open or install any other app.) Is it possible to force such restrictions on an Android device ? And if it is where should I start ? What you are looking for is called the "kiosk mode" (just to help you googling the appropriate term). There is no such thing in the standard android api (at least... not yet : see the Edit ). User always have the ability to press the home button to come back to the Home application. But solutions exists: Writing an Home app This solution is a little

How to be notified when screen pinning is turned off in Android 5.0 Lollipop?

独自空忆成欢 提交于 2019-12-03 17:34:14
I have an app that runs in the background and starts an activity when a certain event occurs on the phone. I'm finding with Android 5.0 that when the user has screen pinning turned on with another app, the startActivity(intent) call is ignored completely. My app doesn't know that the activity didn't start, so the user then won't have another chance to see the activity until they manually reopen my app. Is there any sort of event I can register for to be notified when screen pinning is turned off, so I can reattempt to start my activity? Here is method in ActivityManager class which tells

How can I send a string through NFC while Screen-Pinning?

柔情痞子 提交于 2019-11-28 09:13:24
I am trying to send a String through NFC while my app is using screen pinning . It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then perform the transfer, but that is a security risk. How can I do this? Here is all the code if you want to try. All you need to do is enable screen pinning manually through your app settings (so it is less code and still produces the same result). I tested this using two Nexus 7 both running Android 5.0. You don't have to read all this code, this

Android: How to make device run only one app?

ε祈祈猫儿з 提交于 2019-11-27 07:53:18
I have an customer project where I have to make single task android device. Customer isn't able to escape the application which my company have developed. Also customer isn't able to start any other application and our application is started when the device is booted. Overall all the customer is able to do with the device is run our application. Is there any other way to make this work than rooting the device, disabling all system buttons and making our application the launcher. I have something like 400 devices for this purpose so rooting all those would cost lot of time. I also read Google's

How can I send a string through NFC while Screen-Pinning?

时光怂恿深爱的人放手 提交于 2019-11-27 02:44:10
问题 I am trying to send a String through NFC while my app is using screen pinning. It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then perform the transfer, but that is a security risk. How can I do this? Here is all the code if you want to try. All you need to do is enable screen pinning manually through your app settings (so it is less code and still produces the same result). I

Android: How to make device run only one app?

送分小仙女□ 提交于 2019-11-26 13:52:41
问题 I have an customer project where I have to make single task android device. Customer isn't able to escape the application which my company have developed. Also customer isn't able to start any other application and our application is started when the device is booted. Overall all the customer is able to do with the device is run our application. Is there any other way to make this work than rooting the device, disabling all system buttons and making our application the launcher. I have