Android 4.4+ how to make a app become Screen Lock - android

I got a problem about how to create a simple Screen Lock for my Android devices (4.4.2)
I tried some ways, including disabling back, home and recent keys, but as far as I know, since android 4, I can't disable home and recent keys anymore due to security, so only back key is disabled.
I don't know what to do to handle this.
Any suggestions?
Please let me know.
Thank you in advanced

Related

Android: Make app not closeable (kiosk) under certain circumstances

I have a problem that I don't really know how to solve and also the threads here at SO haven't fully helped me.
Here's the issue: I want to have an android app that I can start whenever I want, and then, when I click on a button, I want the app to be somewhat "locked". By that I mean: after this button was pressed, the user is not able to close(see edit below) the app. Also, the app should immediately start after rebooting the device.
This lock can then be revoked by, say, entering a passcode, which makes the app run normally again.
So far I understand how to build kiosk applications. However, a kiosk application needs a particular manifest which will make it always a kiosk app, and not "on demand".
I'd greatly appreciate any hints and tips on this topic. Thank you so much!
EDIT: by "close" I really only mean completely turning the app off, not only going back to your home screen. Such that the app is always running in the background
You can programmatically lock and unlock the App in Android 5.0 http://developer.android.com/about/versions/android-5.0.html#ScreenPinning

Removing notificationbar for kiosk mode

I am trying to build an android app in kiosk-mode in Android 4.2.2 (Jelly Bean). What I have achieved till now is to make the application as full screen and also handled the home and back buttons. However, my problem is, I want to remove the status/notification bar. I don't want the user to access any other settings through it. I have tried out many ways including the usage of different flags available in android WindowManager for having a screen devoid of the notification bar. However, none were helpful for that.
I have read about apps like Surelock which serve this purpose. Therefore, at least I know that there is something which can be done, except rooting, to remove the notification bar.
Can anyone please help me on this?

Immersive mode locking app on Nexus Tablet

I just ran in to to an issue with immersive mode locking my app when testing on a android tablet (nexus7).
The only way to exit the lock was to swipe up to get back the software navigation bar and exit immersive mode.
How do I prevent this? What is happening?
The issue only appears when trying to enter immersive mode on a non-owner account. Android tablets support multiple users but apperently only one of them is considered "owner" According to issue https://code.google.com/p/android/issues/detail?id=62366 the problem is known by google but no fix as of yet.
The problem is that the helpscreen that pops up is hidden/invisble but is still receiving the touchevents. It can be removed by clicking in the correct location but it can be somewhat tricky to find it when you have no visual clues as to where to click.
Hope this helps save someones time!

Disabling screen switch off

We have a large fleet of android devices (Archos 70, running android 2.2) that we develop apps for to be used in the live events market.
One big problem we encounter is users touching the power key and turning the screen off, which generally they cannot find the key to turn them back on.
Is there any way in our flash air app that we can capture this key press and discard it?
Any help would be greatly appreciated!
No, actually this is impossible. This functionality is a part of Android. If you press power button everything is disabled. Even if you have wakelocks in your application they are all released when a user presses the power button. And I think that Google do not want to add such type of wakelock to their system because buggy applications can in this case block the ability to disable screen.

Android custom home for tablet

Im develping an app using apk 12 for 10.1 inch galaxy tablet. I would like to design a home screen only with my apps icon so that user will not be able to access anything else. Can I do that ? If yes, how ??
I would like to design a home screen only with my apps icon so that user will not be able to access anything else. Can I do that ?
Yes, it is possible to create a home screen application.
If yes, how ??
There is a Home sample app in your Android SDK installation (assuming you installed the samples from the SDK Manager). It largely boils down to having an activity with an <intent-filter> using CATEGORY_HOME.
Note that the user who installs your app will have the option of choosing between your home screen and the built-in one. Even if they make your home screen the default one, they will still be able to revert that decision by removing your app:
by booting in safe mode
via the Android SDK (e.g., adb uninstall)
by getting into Settings through notifications and the like
possibly other means
For ur knowledge lot many thing are diff for honeycomb.
For your knowledge, nothing changed in this area with Android 3.0.

Categories

Resources