lockscreen

Use screen lock in my app

夙愿已清 提交于 2020-04-07 18:14:38
问题 Is it possible to use the default security settings, which user has set to the phone, as a locking or login mechanism for my app too? I mean like when we reset the phone, it asks for phone password or pattern. Is it possible the same way that I can use the default android password or pattern set by user to login to my app? My goal is to bypass the developing effort and use some standard way of authentication without making user to remember another new password. NOTE: I'm aware that I can lock

How to change the Lock screen custom text(Owner Info)?

老子叫甜甜 提交于 2020-02-21 04:07:35
问题 I wrote the program code String message = "This is test"; Settings.System.putString(context.getContentResolver(), Settings.Secure.LOCK_PATTERN_ENABLED, message); This is not changing the lock screen text(Owner Info) and Added permission as <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 回答1: Change Settings.Secure.LOCK_PATTERN_ENABLED to Settings.System.NEXT_ALARM_FORMATTED . Note that Settings.System.NEXT_ALARM_FORMATTED was deprecated in API level 21. You must use

How to change the Lock screen custom text(Owner Info)?

对着背影说爱祢 提交于 2020-02-21 04:05:38
问题 I wrote the program code String message = "This is test"; Settings.System.putString(context.getContentResolver(), Settings.Secure.LOCK_PATTERN_ENABLED, message); This is not changing the lock screen text(Owner Info) and Added permission as <uses-permission android:name="android.permission.WRITE_SETTINGS" /> 回答1: Change Settings.Secure.LOCK_PATTERN_ENABLED to Settings.System.NEXT_ALARM_FORMATTED . Note that Settings.System.NEXT_ALARM_FORMATTED was deprecated in API level 21. You must use

Full screen transparent activity (no title & status bar) doesn't work… why?

孤街浪徒 提交于 2020-01-22 17:32:50
问题 I'm making a custom lock screen. The lock screen is an activity which I launch by the time the screen goes off. However, I can't make the activity be both transparent & fullscreen. The Status bar keeps showing. Here's what I do in the manifest: <activity android:name=".activities.LockScreenActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/> I'm also adding these extras in activit's onCreate: requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout

Full screen transparent activity (no title & status bar) doesn't work… why?

杀马特。学长 韩版系。学妹 提交于 2020-01-22 17:32:06
问题 I'm making a custom lock screen. The lock screen is an activity which I launch by the time the screen goes off. However, I can't make the activity be both transparent & fullscreen. The Status bar keeps showing. Here's what I do in the manifest: <activity android:name=".activities.LockScreenActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/> I'm also adding these extras in activit's onCreate: requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout

Settings Non-English language password on android phone?

陌路散爱 提交于 2020-01-17 04:56:09
问题 With Reference to this question on android stack, i have a solution to do which allows android phone to provide support for setting non-english language password. My phones SRC is based on stock-android which is not allowing me to set password which is non-ascii standards like Hebrew. Based from AOSP source code that handles the password input for lock screen, ChooseLockPassword.java, inside validatePassword() (line 292), here is a snippet that will show the "illegal character" message (from

Android lock screen behaviour

烂漫一生 提交于 2020-01-17 04:40:09
问题 If I press home and come back to my app a little later I will find that the state has been preserved perfectly. For some reason however if I lock the phone and then unlock it, my app has been returned to the original state bar a few things here and there. When I looked into the logs I found that onCreate had been called while the phone was in a locked state. Because locking the phone is quite an off hand thing to do, having your game reset every time you do so is not desirable to the user.

Hide Home button & disable right side options from system bar

∥☆過路亽.° 提交于 2020-01-16 05:19:13
问题 I have found non rooted apps which are capable of hide home button from bottom system bar of tabs (not all the devices but many of samsung tabs) & disabling (not hiding) right side wifi, settings entering panel in system bar (worked in all the testing devices). Good example is remote lock screen of Lookout premium app with BIND_DEVICE_ADMIN permission. This lock screen appears on top of the native android lock screen it has these features work in many devices. Is there a way to create an

Handling volume change on android lockscreen?

不打扰是莪最后的温柔 提交于 2020-01-14 19:14:25
问题 What I am trying to do is, being able to catch volume up/down button actions on lockscreen on android 4.4. Google Cast Design Checklist document describes lock screen requirement "Provide access to the volume control via hardware buttons". I tried various ways to handle hardware volume buttons on lock screen but none of them worked. onKeyDown/dispatchKeyEvent - I tried to override onKeyDown as well as dispatchKeyEvent methods on Activity, but none of these are executed on lockscreen, these