locked
Port from Android - Run on top of lock screen. RRS feed

  • Question

  • I am porting my app from Android to Windows. The use case for the app is the user needs split second access to the app when it is running. This includes even if the phone's lock screen comes up. Because unlocking is to slow, the Android app is configured to run on top of the lock screen (Android Code: getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);)

    How do I do this on a Windows Phone app?

    Saturday, November 21, 2015 7:49 PM

Answers

  • Hi Stan Green,

    Some background: The business requirement is the user must have instant access (with the exception of activating the display) to the main page of the app. Since the lock screen would require an unlock, it is not instant. On Android, we can run an activity (i.e. Windows Phone page.) such that if the lock screen is invoked the activity takes priority over the lock screen. (Yes, this could be a security issue, but it is up to the developer to take this into consideration and I have.) This allows the user to interact with the activity even if the phone is locked. When the user tries to navigate away from the activity, the lock screen is activated.

    As far as I known, currently in Windows Phone we do not have such equivalent feature, I will recommend you submit this feature request or suggestion to Microsoft on this UserVoice forum.

    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 30, 2015 6:48 AM

All replies

  • Hi Stan Green,

    Welcome to the Developing Universal Windows apps forum!

    What application type are you using? As a friendly reminder please make sure to add the appropriate tags to the title of your post as per Guide to posting: subject line tags

    Do you mean that you want to run your app under the lock screen? If so, please try to check my reply in this similar thread.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 23, 2015 7:16 AM
  • Right now I am targeting the Windows 10 universal app platform. (I'll tag next time now that I know.)

    Some background: The business requirement is the user must have instant access (with the exception of activating the display) to the main page of the app. Since the lock screen would require an unlock, it is not instant. On Android, we can run an activity (i.e. Windows Phone page.) such that if the lock screen is invoked the activity takes priority over the lock screen. (Yes, this could be a security issue, but it is up to the developer to take this into consideration and I have.) This allows the user to interact with the activity even if the phone is locked. When the user tries to navigate away from the activity, the lock screen is activated.

    I am looking for the equivalent feature in Windows Phone development.

    Wednesday, November 25, 2015 3:50 AM
  • Hi Stan Green,

    Some background: The business requirement is the user must have instant access (with the exception of activating the display) to the main page of the app. Since the lock screen would require an unlock, it is not instant. On Android, we can run an activity (i.e. Windows Phone page.) such that if the lock screen is invoked the activity takes priority over the lock screen. (Yes, this could be a security issue, but it is up to the developer to take this into consideration and I have.) This allows the user to interact with the activity even if the phone is locked. When the user tries to navigate away from the activity, the lock screen is activated.

    As far as I known, currently in Windows Phone we do not have such equivalent feature, I will recommend you submit this feature request or suggestion to Microsoft on this UserVoice forum.

    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 30, 2015 6:48 AM