0

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.

Jaiprakash Soni
  • 4,100
  • 5
  • 36
  • 67
Ori Seri
  • 917
  • 1
  • 6
  • 14
  • well you have to bind to call service , which is provided by Android with AIDL and when you start the call you will place a flag like LOCKED . when the call is ended , you ll have to check the flag and if its LOCKED then return to the lock screen , otherwise default – AntJavaDev Aug 07 '15 at 07:25
  • Thanks, what is the Intent name of the call service? – Ori Seri Aug 07 '15 at 08:28
  • you could find it easily in Google's Android documentation because i havent tested myself for the latest version , or check this solution here http://stackoverflow.com/questions/4844930/how-to-call-methods-of-a-service-from-activity – AntJavaDev Aug 07 '15 at 09:25

0 Answers0