Questions tagged [proximity]

A proximity (sensor) is a sensor able to detect the presence of nearby objects without any physical contact.

Proximity sensing is the ability of a device to tell when it is near an object, or when something is near it. This sense keeps a device from running into things. It can also be used to measure the distance from a device to some object.

456 questions
3
votes
1 answer

Google maps - distanceTo vs proximity alert vs geofence

I'm building an app for mobile which needs to monitor the distance between the user's location and multiple location markers at regular intervals. From what I have read here and on other sites, I have three options: 1) use the distanceTo and…
3
votes
1 answer

Change Class After Notification Is Clicked Android

I am trying to change my class to to go to Login.java I have tried numerous solutions but can't seem to get it. I have a PromximityAlert set-up to check location and after that location is confirmed it will display the notification and when that…
3
votes
1 answer

Proximity sensor affects thread that plays audio

An iPhone app starts a thread using NSThread that plays short audio tick on regular intervals to give pace. Code that starts and plays sound: tickingThread = [[NSThread alloc] initWithTarget:self …
matejk
  • 798
  • 1
  • 14
  • 27
3
votes
3 answers

How to implement proximity search with postcode?

I have to use proximity search with postcode for Australia. Going through some links like http://www.randommouse.com/rms/about/product/FNDRY/docs/tutorial/08/how-to-add-google-maps-to-your-review-site-intro.html I found that I have to manage the…
user75472
  • 1,277
  • 4
  • 28
  • 53
3
votes
1 answer

Android Proximity Sensor - Incorrect value

I've run into an issue trying to create an application that keeps track of Proximity Sensor values. The intent of the application is to record the instantaneous proximity value on regular intervals (say 30 seconds). Following the API Documentation,…
Iv4n
  • 359
  • 1
  • 4
  • 18
3
votes
1 answer

Android GPS proximity alert not working

I'm trying to set up the most basic proximity alert, but nothing seems to happen. I'm fairly new to Android programming, so please let me know what I'm doing wrong or what am I missing. I got inspired from some source codes out here and this one.…
K-RAD
  • 505
  • 6
  • 11
3
votes
2 answers

Android: how to set a proximity alert to fire only when exiting or only when entering the location

I am developing a ToDo app with reminders(by time and by location) and the thing is I give the user the option to choose if he wants the reminder by location to alert when he is entering the location or when he exits the location. how can i do…
Daniel
  • 55
  • 2
  • 11
3
votes
2 answers

Is NFC necessary to use Peerfinder?

In a Windows Store application, I am attempting to use the PeerFinder class to locate the Bluetooth enabled devices around me, but I get an generic exception every time I call Peerfinder.FindAllPeersAsync(): One or more errors occurred while…
Joel Shea
  • 789
  • 7
  • 21
3
votes
0 answers

Enable proximity sensor in background

I'm developing a VoIP App. I want to use the proximity sensor just like the native call. I enale the proximity sensor when a call come. It work fine when the call is in foreground; But when I put it to background, it seems the proximity sensor can't…
NewXcoder
  • 705
  • 1
  • 5
  • 18
3
votes
2 answers

Calculation of proximity between of one location to many other locations

I have a database with a list of latitude and longitude -DeviceName -Latitude -Longitude Given my current device's latitude and longitude, I want to get all devices within the database list in distance/proximity of X kilometres. How do I calculate…
001
  • 62,807
  • 94
  • 230
  • 350
2
votes
1 answer

How do you sort or toggle display of lat lon point using javascript (based on proximity)

I want to take a list of lat lon points and sort / toggle their display based on their proximity. Ideally, I would like to do this on the client side. For instance, I often see maps that update a list based on the view of the current map. It…
user379468
  • 3,989
  • 10
  • 50
  • 68
2
votes
1 answer

Using proximity sensor lock and unlock a home screen

I am doing one application using proximity sensor in android. when sensor changed it should lock the phone and when phone is locked using same sensor it should unlock a phone. To lock a phone am using double tap mechanisam. for lock using only a…
Prasad
  • 1,375
  • 5
  • 17
  • 31
2
votes
1 answer

Zip Code proximity calculation in PHP

I've seen all sorts of "store locator"-type solutions on the Web for finding, for example, stores within a given radius of a particular Zip Code, and they have fancy maps that display the nearest stores, etc. Many use Google Maps or other…
ColdCold
  • 4,181
  • 2
  • 26
  • 20
2
votes
1 answer

R RandomForest: Proximity for new object

I trained a random forest: model <- randomForest(x, y, proximity=TRUE) When I want to predict y for new objects, I use y_pred <- predict(model, xnew) How can I calculate the proximity between the new objects (xnew) and the training set (x) based…
Kilian
  • 399
  • 1
  • 4
  • 8
2
votes
1 answer

startForeground fails to show my notification

startForeground() fails to show the notification below, which is meant to keep a service that monitors the changes in the Proximity sensor alive. There's no error in the logcat. This's where I start the service Intent intent = new Intent(ctx,…