I want to create custom lock screen in android with pattern code. I know how to make a custom lock screen example and a pattern lock example, but I want to add to my custom lock screen an option to call a specific contact from the lock screen, even if it locked.
What is the best way to allow the user call someone, but after the call was ended the user should return to the lock screen (similar to emergency call). Notice that the user shouldn't use the key pad, the number is defined by configuring the app.
You can imagine it like the camera, which you can access to even when the phone is locked, but you still need the code for accessing the whole phone.