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
0
votes
1 answer

Is the proximity sensor a private api?

Apple documents the proximity sensor here, so I would imagine it's a public api. I have heard otherwise and wanted to double check before submitting to the store.
vqdave
  • 2,361
  • 1
  • 18
  • 36
0
votes
1 answer

Returning values form OnSensorChanged() method

What I'd like to achieve is to return the correct result set in method isClose. The problem is theisClose method is not waiting for onSensorChanged to be triggered and returns the default "0" value of isClose field. I call my Position class like…
XorOrNor
  • 8,868
  • 12
  • 48
  • 81
0
votes
1 answer

Sensor.TYPE_PROXIMITY returning NULL even though valid proximity sensor is present

I am writing a test app to validate the Proximity sensor functionality on Samsung Galaxy Note 10.1 tablet (Wifi only). As per the device specification it supports a proximity sensor . How ever when I query for the supported sensors on the device it…
sim
  • 249
  • 7
  • 17
0
votes
0 answers

Android proximity sensor giving false results

First post here, but stackoverflow has solved soooo many problems for me. This one though, I can't seem to figure out. I'm creating an android app that de-increments and TextView value by 1 with every proximity detection. For some reason, when…
user1977217
  • 401
  • 1
  • 4
  • 4
0
votes
1 answer

If addProximityAlert expiration is -1, will it removeProximityAlert after it is triggered?

If addProximityAlert expiration is -1, will it cancel after it is triggered? Or are you required to removeProximityAlert in ENTERING or EXITING if you want to remove it? Thanks in advance!
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
0
votes
1 answer

Pair with a bluetooth peripheral using ios 5

I am developing a proximity sensing application using bluetooth technology 4.0. I am able to discover the devices. But I am not able to pair with them. Nor can i call [peripheral readRssi] method. The way I want to achieve this is that if the…
0
votes
2 answers

Can PeerFinder class of .NET communicate with mobile phone devices through laptop via bluetooth?

I doubt the limitation of PeerFinder class in .NET. Can it make connection only with other laptops when implemented on laptop and phone to same phone when implemented on phone? Is it limited only to communicate with Windows OS devices, or is it able…
Indish
  • 739
  • 1
  • 7
  • 12
0
votes
1 answer

Default proximity search in solr

I was wondering if there is anyway to set up a default search proximity within solr via the solrconfig.xml. Currently, if I want to perform a proximity search I would have to do the following: q="red cars"~10 Is there a way to set the 10 word…
user321532
  • 409
  • 5
  • 14
0
votes
3 answers

Calculating Manhattan distance in Java

I am creating a simple program to calculate proximity distance measures of coordinates read from text file, I want to create method to calculate manhattan distance of given points for example: (0,1,1,0,1), (1,0,0,0,1), (0,0,0,1,1) would result in: …
Samer El Gendy
  • 1,683
  • 2
  • 23
  • 45
0
votes
1 answer

How to PASS ON proximity change event

I've a broadcast receiver for phone state changes, and when phone state is "OFFHOOK", I register an eventlistener for proximity sensor. When the proximity changes , I do something(I do the registering and the 'something' in a service ,for that…
Savin
  • 51
  • 6
0
votes
1 answer

Fast computation of average proximity in proximity matrix

I've got a similarity matrix between all cases and, in a separate data frame, classes of these cases. I want to compute average similarity between cases from the same class, here is the equation for an example n from class j: We have to compute a…
Uros K
  • 3,274
  • 4
  • 31
  • 45
0
votes
1 answer

Android how to implement Proximity Sensor correctly

My app finds the users location. I'm trying to set a proximity alert. The app scans a qrcode using ZXing scanner. the qrcode has lon/lat values that i read into app. i'd like to compare the user's current location against the values stored on the…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
0
votes
1 answer

Android Proximity Alerts on Galaxy Nexus with Android 4.1.1 - does it really work?

I would like to use Android's LocationManager and the addProximityAlert method to setup proximity alerts. For this, I've created a small application that shows a crosshair on top of a map, plus a text field for the proximity alert name and a button…
Sven Haiges
  • 2,636
  • 5
  • 42
  • 54
0
votes
1 answer

How to check touch proximity to an UIImageView?

Does anyone know how I would check the touch proximity to an UIImageView in Xcode? I am trying to check if the touch is within 25 pixels of an UIImageView which moves around the screen. Any help would be appreciated. Thank you.
0
votes
1 answer

ProximityAlert with a BroadcastReceiver not working

I am new to Android and have a problem with adding ProximityAlert with a BroadcastReceiver. I know that this topic has been taken up earlier as well but I am trying to add proximity alert to different locations and I am not sure if what I am trying…