How to make a mobile application stay on top?

前端 未结 3 1558
萌比男神i
萌比男神i 2020-12-16 08:52

I am developing a mobile application for Windows Mobile. I would like that the application is lauched by default by the system at startup and that users cannot minimize it.

3条回答
  •  不知归路
    2020-12-16 09:16

    You want to run your device in "Kiosk Mode". Actually, Windows Mobile devices aren't intended to run in kiosk mode. If you can select the device you are going to use, select a Windows CE device, for which you can modify the image. Windows CE devices do have an option to run in a kiosk mode. This is the best solution, however you need Platform Builder and a device that an image can be downloaded to.

    For a Windows Mobile, you can "simulate" kiosk mode. This is what you need to do:

    • Launch your application at start up.
    • Make your application full screen. The taskbar should be hidden.
    • Intercept hardware buttons that can navigate you away from your application
    • If other programs run on start up, disable them. Usually programs not launch on start up, so you shouldn't worry about this.

    This article could be a starting point. I believe that it will be difficult or even impossible to implement a generic solution. Instead focus on a single device.

提交回复
热议问题