How to create a simple proximity alert?
Ive looked around but cant seem to find a clear answer so so far I have nothing. Can someone please help me cre开发者_JAVA技巧ate 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!
To build an Android app with proximity alert, the main ingredient are Broadcast Receiver, Intent, PendingIntent, and AddProximityAlert.
The workflow should be as following: -
- Register an IntentFilter with a Broadcast Receiver
- Create an Intent
- Get a PendingIntent that will perform a broadcast
- Set proximity alert
You can check out my post on this topic.
精彩评论