如何创建简单的接近警报?
我环顾四周,但似乎找不到明确的答案,到目前为止我什么也没有。有人可以帮助我为 Android 创建一个简单的接近警报,然后它会弹出一个是/否问题,“是”将其带到另一个屏幕,“否”则退出程序。
一些例子会非常有帮助,如果你能说出它应该进入 Eclipse 中的哪一部分,因为我对此非常陌生,而且很多人只是放置一些代码而不说它去哪里,我将非常感激。
谢谢你!
Ive looked around but cant seem to find a clear answer so so far I have nothing. Can someone please help me create a simple proximity alert for Android so it then pops up a yes/no question with the "yes" taking it to another screen and "no" exiting the program.
Some examples would be really helpful and if you could please say which part in Eclipse its supposed to go into because Im really new to this and a lot of people just put some code and dont say where it goes, I would really appreciate it.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要构建具有接近警报的 Android 应用程序,主要成分是 Broadcast Receiver、Intent、PendingIntent 和 AddProximityAlert。
工作流程应如下所示: -
您可以查看 我关于此主题的帖子。
To build an Android app with proximity alert, the main ingredient are Broadcast Receiver, Intent, PendingIntent, and AddProximityAlert.
The workflow should be as following: -
You can check out my post on this topic.