An unusual question, but just something that randomly popped into my head.
Wondering if anybody had given this some thought with the current day technology.
It'd might be a pretty neat feature for a multiplayer game.
I know NFC's can detect another device in a nearby proximity, but does it have the ability to detect what angle the device is?
I'm talking about nearby positioning, like within bluetooth or wifi connectivity range.
Nothing related to using GPS or the internet.
No, NFC is for two devices in close proximity to each other, usually by no more than a few centimeters, (almost touching each other). It can't be used in multiplayer games unless it involves bumping the two phones together
Related
I am planning a social app that needs a functionality to detect when two people are really close to each other, and preferably something that would be hard to cheat. I know I could use GPS but since there are GPS spoofing apps and the accuracy is not as narrow as I would need (for instance, two people on the same building but many floors apart should yield negative) I wanted to see if I could do it through WiFi or Bluetooth.
Is it possible to have two Android devices detect each other on the same wifi network from an app? No other information besides their presence is necessary.
I know Bluetooth can easily be done if the devices agree on the connection everytime. But I needed automatic detection, meaning the devices would accept the connection only once, and everytime they get close to each other the detection would be automatic without asking for permissions, and without requiring one of them to perform any actions to scan for bluetooth devices. I assume this is not possible for privacy reasons, right? Although no exchange of data is necessary, just the presence.
If anyone has any suggestions of other ways to achieve this, feel free to suggest. I don't need details about the code, just to know what is possible and what isn't and what do I need to look into (for instance libraries or components from the sdk).
I know detecting devices unconditionally is very unlikely to exist, for obvious reasons, but what I am looking for should go through an initial "handshake" or permission between the two devices, in order to enable the detection to happen (over a limited time window of maybe a couple of days), so I guess it may be possible, although I couldn't find anything.
I'm currently trying to detect when a car is parked via Android.
I was thinking of using the Android Detected Activities (https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity) and detect a switch between IN_VEHICLE and ON_FOOT. But it means polling the device regularly so it's not really power efficient.
Do you think it's reliable enough ? Also, maybe there is a better solution ? What do you think ?
I also think about using Bluetooth and detect when the car's bluetooth is unpaired but everybody doesn't use Bluetooth.
I've used the ActivityRecognitionApi in one app, and it's fairly accurate. You are not "polling" the device, but rather subscribe to activity changes. This means there's really no overhead beyond what the phone is doing anyway.
I am assigned an absurd task, which is to detect if a cell phone is reachable or not by typing in their numbers.
So its basic use is say I am handling a telephonic service which has around 10,000 agents. By running a program through web or which ever way possible i'll know if a number is switched on/off, since the numbers need to be available 24x7 for the company.(It has other uses as well, telling those would be waste of time for all).
I tried searching on internet but could not get a single hint if it can be achieved or not.
Currently I am going through basics of how a call is established and network in cell phone devices.
For any help,I would highly appreciate since this complete question might sound stupid.
Even if some can point me to the right direction, do answer.
NOTE : I have to build an stand-alone application to do the work. Cannot install my own application in devices to send a ping or so, since most of the cell phones a basic low-end devices.
Thanks
As you know, after a short period of time Google Glass will go into a sleep/hibernation like state where one must swipe the side of the glasses or tilt their head back a minimum of 10 degrees to start using them again.
I have a use case for a handicap individual where they don't have use of their hands (or legs), and can't tilt their head back the full 10 degrees. We measured as best we could, and 7-8 degrees is the best he can do.
I'd like to help this person out with a simple app that wakes up Google Glass in an alternative way. Given his restraints, I was thinking of tying into the accelerometer and waking them up with a simple "shake" of the head ( it would have to be sensitive ), or simply allowing for a way to set it to 7 or 8 degrees instead of the minimum of 10. I figured before diving head first into the GDK and/or Mirror API's, only to find out some sort of "gotcha", I would ask the friendly and resourceful Stackoverflow community if something like this is even possible, and if it is, what those possibilities are.
Thank you to anyone that can add insight.
UPDATE:
I tried Deqing's suggestion. I ended up using Bluetooth Manager for Glass, because the settings apk bluetooth card doesn't support anything but Android and iPhone devices. I was able to get to "Pair a New Device", and have it recognize the device, but when I tapped "Pair", it just sits there trying to pair, and nothing really happens. I then found this google BUG report, which seems to indicate blue tooth connectivity support was broken in update 19.
If hardware approach is an option, grab a Bluetooth keyboard or a regular USB keyboard + OTG cable. You can wake up Glass via keystroke.
I haven't seen this capability with any android app, nor have I seen anyone ask it. Is there any way that the Bluetooth or something can be used within your app to see a list of all the other android devices around you? For example, if my friend is using my app and he is in the same room I can see his device on a list in my app, and he can see mine...
There would have to be something that ties to two devices together, for example being on the same Wifi. As it is there is nothing that broadcasts to other devices that you are there by default. Even Bluetooth requires you to turn on discovery mode, or discoverable mode, and even then it will only stay on for a few minutes. If you wish for two devices to tie together, I am almost sure you could use the Bluetooth, but you would have to go through the normal process of discovery, synchronization, and permissions.
I don't think you can use BT to see what OS any phones around you are using, and they would also have to be set to discoverable.
If you want to make an app, it's possible to construct one where people agree to be located, but that's a voluntary issue, and it would be based on GPS radios in the various phones. I'm working on an app right now that has this capability, but again, it's something people sign up for so they can be located specifically for this purpose.
I would explore using the Google Latitude API as a possible avenue of exploration, before you reinvent the wheel creating a similar service.