19

I want to develop custom lock screen app that looks like iPhone's lock screen.

Are there are any tutorials or examples for this? If not, where should I start?

Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
d-man
  • 57,473
  • 85
  • 212
  • 296
  • Custom lock screens is something different from lock screen widgets. A lock screen widget is a widget that appears inside Jellybean's default lock screen. – Paul Lammertsma Mar 25 '13 at 10:38
  • See also [this related question](http://stackoverflow.com/questions/2140964/source-of-androids-lock-screen). – Paul Lammertsma Mar 25 '13 at 11:20
  • You may check my answer, I think will help you achieve what you want http://stackoverflow.com/a/28603790/3300883 – Miguel Feb 19 '15 at 10:31

1 Answers1

22

There is no support for creating a "custom lock screen aap" in the Android SDK. You can only modify the lock screen behavior in custom firmware.

UPDATE

Note that Android 4.2 does allow you to create app widgets that can be added to the device's lockscreen, which may meet your needs.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • 7
    but i see aps in android market with iphone lock screen. how did they made it then ? – d-man Apr 04 '11 at 04:43
  • 4
    @Faisal khan: Those are not lock screens. They are either home screens with their own integrated lock mechanism, or they are ordinary applications using security flaws to pretend that they are lock screens. – CommonsWare Apr 04 '11 at 10:35
  • 1
    yes i want to create similar home screen with custom integrative lock functionality – d-man Apr 04 '11 at 10:37
  • @Faisal khan: Then write a home screen app. There's a sample home screen app in the sample code in your Android SDK. – CommonsWare Apr 04 '11 at 10:39
  • I'm trying to pinpoint the exact file in the AOSP source, but haven't been successful; I've only managed to locate [these layout files](https://github.com/android/platform_frameworks_base/tree/master/core/res/res/layout-sw600dp) that don't appear to be referenced anywhere. I will take a look at the actual source. – Paul Lammertsma Mar 25 '13 at 11:06
  • Take a look at Keyguard files somewhere in framework in the AOSP that relate to the lock screen. – nan Oct 04 '13 at 14:05
  • 1
    Check out the Adenda SDK: http://www.adendamedia.com/ – Cigogne Eveillée Feb 27 '15 at 18:24