1

I need to show custom dialog that's gite data from Api and display it in this dialog on the screen every time the user open his phone from lock it.

I know how to setup the Api call and All these thing, but I don't know how can I show the dialog screen every time the user open his phone. And also How can I show the dialog windows screen over homepage of the phone. Thank you.

dadCoder
  • 11
  • 2
  • 2
    You can detect phone unlock by using the broadcast receiver https://stackoverflow.com/questions/3446202/android-detect-phone-unlock-event-not-screen-on – Sreehari K May 15 '22 at 19:02
  • Thank you. But How can I show the dialog windows screen over homepage of the phone? – dadCoder May 16 '22 at 20:26
  • @dadCoder https://stackoverflow.com/questions/7591670/pop-up-dialog-in-android-home-screen – Kirguduck May 16 '22 at 21:05
  • You can detect phone unlock by using broadcast receiver and than on receive you have to inflate the dialog view on window manager... This way you can achieve your task – BeeProDev May 17 '22 at 06:56

0 Answers0