Is it possible to lock the screen on Android (similar to guided access in iPad) ? I have tried few of the apps but they do not really lock the screen down. I want my two year to use it to watch videos and that is the reason behind it.
This works beautifully on the ipad (unfortunately its broken now).
No you can't do it in android. the hackaround for this you would have seen in other apps like dim brightness and fullblack image over the window.
are you looking for a ppl or writing a new program but don't want the user to close it or switch screen?
if so you may try to disable the home button the android deivce and set a password to prevent the user from exiting
don't know if this help
Related
I just want to find a plugin that can trigger the native device screen lock button.
So for example if you click a button your device gets locked just it would do if you click your devices native lock button on the side of the phone. For example if your lock button of the device is broken you could do this within an app.
As far as I can tell the only plugin that would work is this one:
https://github.com/kitolog/cordova-plugin-screen-locker . But it seems it only works for android (And might aswell only lock the screen orientation).
window.screenLocker.unlock(successCallback, errorCallback, 10); // 10 seconds unlock timeout (third parameter is optional)
window.screenLocker.lock(successFun, errorFun); // release screen unlock
Is there any solution for iOS aswell? I really cant find anything.
There is a very good reason why the plugin is android-only, as there is no public API to lock the screen on iOS. In general, Apple is more restrictive as to what it allows its developers to do.
For a more in depth explanation, check out this answer.
I moved from iPhone to Android (Samsung S7) and missing one feature. In iPhone I could use quick access to set clock and timer and set direct from locked screen if to press a button at quick access panel, shown at the picture with arrow. Is it possible to make a similar quick access to clock app in android from lock screen? To put it in android quick access panel or in some other way like third party app, etc: aiming to access clock app set on lock screen quick w/o logging in? Same question with Calculator app.
In Android you can do almost everything with apps.
I found here some apps that allow you to create widgets on your lockscreen, you click on them, unlock your screen, and the app launches:
https://www.maketecheasier.com/launch-apps-lockscreen-android/
I own a OnePlus so I know they have this option build in.
You can also use the Xposed module "GravityBox" or "LockscreenMods"
(it is not possible to bypass the unlockscreen through a lockscreen widget!)
I'm building my app with Phonegap. What I want to do is create a button on the screen and add a lock-screen event onclick. I searches on other posts but everyone tries to check if the screen is locked and execute then or before something. I only need the event (lock screen) to happen when clicking that button. It's exactly like you would lock it from the physical button on the iPhone but only it happens by clicking a button.
I need it both for iOS and Android but if you could give me a hint for only one, is welcomed.
Thank you!
For Android side;
As far as i know you app need to be registered on the device as an admin app. Then you can use the Device Administration API to lock the screen by DevicePolicyManager.lockNow()
I'm building an Android app using Appcelerator and I have a problem with the sounds effects when I tap the screen.
I only want disable the sounds effects when I tap in an empty space of the screen in Android. I tried it with the property "touchEnabled: false" and I was looking for in Google and through this website but I didn't find the solution at this problem.
Could anyone help me?
Thank's very much.
This is not something apps have influence on AFAIK.
The user will have to disable this in their Android device settings:
http://www.wikihow.com/Turn-off-Android-Touch-Sounds
Is there a way to change the lock screen in Android programmatically?
If yes, is it possible to create an animation within that view?
Is there a way to change the lock screen in Android programmatically?
No, because there is only one lock screen. On Android 4.2, the user can add app widgets to the lock screen, if the user chooses. You can elect to create an app widget that can be added to the lock screen.
If yes, is it possible to create an animation within that view?
Generally, no. App widgets are not normally animated.
android doesn't officially supports it with a nice API , but there are some solutions for this problem . the best one that i can think of and that will work perfectly on all devices and android versions is this :
you can make an app that functions as a launcher , and ask the user to disable the lock screen.
this way , when the screen is turned off&on , your app will be able to be shown and do whatever it needs .
each time the app is being unlocked , it will send the intent of the home button to the real launcher the user has chosen .
of course , there are other solutions , but as i've tried , all of them have some kind of problem on some android devices and versions . they work by listening to the power off intent , and block the home button by using a flaw they've found in the android source code . you can never assume that it will work on all devices and android versions .
example of such apps are "widgetLocker" and "Picture Password Lockscreen"