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
6
votes
2 answers

Bluetooth RSSI/Inquiry scan on Mac - proximity detection to iPhone without connecting?

I have to dash away from the computer frequently, and I want to trigger some commands to run when my iPhone is close enough/far enough from my iMac (next to it vs. 2-3 metres away/other side of a wall). A couple of minutes latency is fine. Partial…
Benjie
  • 7,701
  • 5
  • 29
  • 44
6
votes
1 answer

Detecting another nearby android device via Bluetooth

Alright, I've got a bit of a weird question here. I'm working on an Android game where I'd like to be able to have Android phones detect the presence of each other. The device searching for other players will know the bluetooth mac addresses of the…
ebarch
  • 89
  • 1
  • 7
6
votes
1 answer

Stop logging of Android Beacon Library

I am trying to stop the debugging spew of the Android beacon library, but it does not work. I have this in my gradle: compile 'org.altbeacon:android-beacon-library:2.3.3' I tried: public BeaconManager(Context ctx, org.altbeacon.beacon.BeaconManager…
gmmo
  • 2,577
  • 3
  • 30
  • 56
6
votes
3 answers

Is a point within a geographical radius - SQL Server 2008

Given the following data, would it be possible, and if so which would be the most efficient method of determining whether the location 'Shurdington' in the first table is contained within the given radius's of any of the locations in the second…
6
votes
2 answers

Simultaneous communication with many Windows/Windows Phone 8 devices using Proximity API

Is it possible to make an application that provide communication between one Windows 8 (as a server for example) device and 'n' (> 1) Windows Phone 8 devices using the Windows 8/Windows Phone 8 Proximity APIs? [Edit] I mean simultaneously and using…
5
votes
0 answers

Proximity wake lock not always turning screen back on

I'm trying to create a custom phone app, and one of the features i'm trying to implement is to turn the screen off when the phone is brought close to face to avoid accidental touches. I have read about the proximity sensor in the android…
David Barishev
  • 534
  • 7
  • 30
5
votes
3 answers

SQL - find row with values of two columns closest to X and Y

I am building a website on wich people can get some infos based on their weight and height. How would one structure a query that would give me a row with the two specific values closest to the ones users enter? I found this on stackoverflow and it…
Andrej
  • 461
  • 1
  • 5
  • 10
5
votes
2 answers

Not able to get proximity sensor's values in android

Can someone provide an example as to how to use the proximity sensor? I tried to use it the same way as other sensors, but it's not working. This is the code snippet i have been using: final SensorManager mSensorManager; final Sensor…
chethan
  • 51
  • 1
  • 2
5
votes
1 answer

Can I monitor the iPhone proximity sensor without turning off screen? Also, landscape

I've got the proximity sensor working so that I can trigger events when in proximity, but I'm trying to use it as a sort of dead man switch. The problem is that whenever in proximity, the screen turns off, which drastically reduces the usability of…
SeniorShizzle
  • 984
  • 1
  • 11
  • 27
5
votes
2 answers

Use Proximity Sensor in android- turn screen off

I want to turn off screen when close to face. I've used this to turn screen off. but I have an error : cannot find symbol in this line: params.flags |= LayoutParams.FLAG_KEEP_SCREEN_ON; and params.f lags |= LayoutParams.FLAG_KEEP_SCREEN_ON; …
Farzan Najipour
  • 2,442
  • 7
  • 42
  • 81
5
votes
1 answer

Detect user proximity from the screen

I'm working on a BB10 app that needs to be able to disable the screen when the user holds the phone up to his/her face during a call. How can I tell when the user is holding the phone up to his/her face?
Brian
  • 14,610
  • 7
  • 35
  • 43
5
votes
0 answers

Unexpected false return value from android.hardware.SensorManager.registerListener in Android 4.3

Used LG Nexus 4, Android 4.3 The return value is sometimes false and I don't understand why. Documentation says: "true if the sensor is supported and successfully enabled." What is strange is that no examples I've seen is testing return value from…
5
votes
0 answers

Android disable proximity sensor during phone call

I have an app that places a phone call and then switches back to my activity while the phone call is happening. The problem is, if the user puts their hand near the proximity sensor, then the screen turns off. Is there a way to disable the…
Chris Feist
  • 1,678
  • 15
  • 17
4
votes
1 answer

Creating smooth lighting transitions using tiles in HTML5/JavaScript game

I am trying to implement a lighting effect in an HTML5/JavaScript game using tile replacement. What I have now is kind of working, but the transitions do not look smooth/natural enough as the light source moves around. Here's where I am now: Right…
spectralbat
  • 407
  • 2
  • 13
4
votes
2 answers

Activate proximity Monitoring while occluded to shut down iphone screen

Needs I want to turn the screen off when the user places his iphone upside down on q desk. At the same time I do not want to have the proximity monitor enabled all the time as this is very uncomfortable for the user and miss fires a lot of times…
Andres Canella
  • 3,706
  • 1
  • 35
  • 47
1 2
3
30 31