如何在移动设备上删除或卸载 midlet 应用程序时询问确认警报?
当用户在移动设备上删除我的 Java ME 应用程序时,我需要询问确认警报。是否可以?我想问确定删除此应用程序吗?这个问题是“是/否”类型。如果用户按“是”,则会在 wap 浏览器上自动打开我们的调查页面。如何实现这一目标?
I need to ask the confirm alert while user delete the my Java ME application on mobile. Is it possible? I want to ask like Sure to delete this application? This question is YES/NO type. If user press yes, automatically open the our survey page on wap browser. How to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好问题,这在一定程度上是可能的。
您可以将两个属性添加到 jad 以在删除时触发。
MIDlet-Delete-Notify(自 MIDP 2.0 起)此属性指示发布删除状态的位置 (URL)。您可以使用 URL 重写来编码 MIDlet 套件的跟踪信息。 URL 的长度不能超过 256 个 UTF-8 编码字符。
MIDlet-Delete-Confirm 用户在删除 MIDlet 套件时将看到此确认提示。
因此,一个可以通知您,另一个可以显示消息。也许在消息中,您可以在调查中添加一个简短而独特的 goo.gl URL,并希望用户凭记忆访问它,或者使用易于记住的单个短 URL。
Good question this is possible in part.
There are two attributes you can add to the jad to trigger on deletion.
MIDlet-Delete-Notify (since MIDP 2.0) This property indicates the location (URL) for posting removal status. You can use URL rewriting to encode tracking information for the MIDlet suite. The URL can't be longer than 256 UTF-8-encoded characters.
MIDlet-Delete-Confirm The user will see this confirmation prompt when removing a MIDlet suite.
So the one can notify you and the other can show a message. Perhaps in the message you can put a short unique goo.gl URL to the survey and hope the user visits it from memory, or use a single short URL easy to remember.
J2ME 中没有相应的钩子。它是主机操作系统的一部分。因此,长话短说。你无法实现这一点。
There is no hook for that in J2ME. It is part of the host operating system. So to make it short. You cannot achieve this.