lockscreen

How to customize Android's LockScreen?

大城市里の小女人 提交于 2019-11-29 02:24:21
I know that there is already some apps can do this, such as: WidgetLocker Lockscreen Flyscreen I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code. And I wonder if it will be different to deal with when the screen is locked by draw pattern? Mark Allison Have a look at this answer . You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK. 来源: https://stackoverflow.com

Changing iphone lock screen programmatically when app is running in background

点点圈 提交于 2019-11-29 01:58:14
问题 I am developing an iphone app where i have to change lockscreen image programmatically when app is running in background.I have got lots of stuff saying it is not possible but there is an app for this please let me know how to acheive this. Thanks. 回答1: The only way you can change the lockscreen image is when you are playing audio. Police Scanner+ does play audio, and therefore can set an image. This only works with iOS 5+ and is done something like this. - (void)setupNowPlayingInfoCenter:

Enable or disable the PatternLock screen from code

牧云@^-^@ 提交于 2019-11-28 20:58:21
I have tried to find a way to disable the PatternLock screen temporarily. I don't want the lock to be disabled completely, but the user should not need to re-enter his pattern all the time. My idea is to write a service which disables the pattern after some user activity and re-enables it after a while. (and even more) There are apps on the market that do something like that (i.e. AutoLock or TogglePattern), so there must be a solution. I know that I can prevent a lock completely by using: getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) or KeyguardLock.disableKeyguard()

developing an android lock screen application [closed]

孤人 提交于 2019-11-28 20:15:08
I want to develop my own lock screen for Android that will replace the default android lock screen. I do not have any idea how to start. Is there any tutorial about it or an example I can download and open in my eclipse and run ? Thanks a lot Udi Idan What you actually want to do is create an application which will look like the home screen and prevent the "real" home screen from appearing. You might want to have a look at this: Launcher2.git I would also recommend reading these questions: Create custom lockscreen for android 4.0 or above? https://stackoverflow.com/questions/10864300/create-a

How to make our own lock screen in android instead of default lock screen [duplicate]

老子叫甜甜 提交于 2019-11-28 17:40:22
This question already has an answer here: Creating custom LockScreen in android 5 answers I have an idea of creating my own phone lock app similar to android pattern lock. I need to display or start my app whenever the phone boots/restarts/phone, lock/phone, and unlock. I don't know how to make the app appear instead of default lock screen and to hide the default lock screen. So my questions are: How to display or start my app instead of default lock screen What is getWindow().addFlags( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |

Android Facebook lock screen notification

二次信任 提交于 2019-11-28 16:15:18
On the latest version of Android app Facebook showed lock screen notification feature, like on this screenshot: Did anyone try to implement this? I know that It's simple to show Activity on top of lock screen, but unfortunately It doesn't work with translucent background. Basically it works but below our activity we see launcher screen, not lock screen (like lock screen in this case would be also transparent). What I tried right now is: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); getWindow()

Android launch intent when lockscreen should appear

纵饮孤独 提交于 2019-11-28 09:44:09
问题 I am trying to develop a alternate lock screen there for I need a intent filter which listens on the screen going off but the problem is I don't know which attribute to use and which value to give 回答1: Working on the same thing as well. this is the question i posted yesterday, follow it maybe something will pop out. By the way as i wrote in the question, the action you have to listen to are: Intent.ACTION_SCREEN_ON: screen is on, you have to start your activity here and check for

How can I interact with the Lockscreen layout to display text into it, like this app:

倾然丶 夕夏残阳落幕 提交于 2019-11-28 09:23:09
I just discovered this application : https://market.android.com/details?id=de.j4velin.lockscreenCalendar It seem that is now possible to write some text inside the lockscreen in the place where the alarm is usually written. I would like to display custom text on this place, but have totally no idea on how to achieve that. This guy succeed to write calendar events at this place. Thank a lot for any clue//snippet that would help me. This is astonishingly easy to achieve and astonishingly badly documented. All you need to do is set the alarm string in the system settings, as follows: String

Android Galaxy S4 — Activity that is visible over lock screen

拥有回忆 提交于 2019-11-28 07:37:52
A few years ago, I wrote an alarm app that worked on Android 2, and I'm now trying to upgrade it to work on Android 4. Specifically, on the Samsung Galaxy S4. On Android 2, if the phone was sleeping, it would wake the phone up and display a "Snooze or Dismiss" screen over the lock screen. On Android 4, it wakes the phone up, but you have to unlock it, then open the notifications area, then click the alarm's notification, before you can hit "Dismiss." I have always been using this code to do the waking: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager

How to lock screen in portrait/landscape in iPhone?

流过昼夜 提交于 2019-11-28 02:12:39
问题 My Application supports all orientation but in few cases i want to lock the screen in portrait/landscape mode. In my Application i have two kind of pdf document. one is in portrait document and other is landscape document . i want to open portrait document in portrait view only, and landscape document in landscape view only. i want to do like this: if my application is open in landscape view and i click on the portrait document so it must rotate in portrait view and same like this for