Hi, I am making an android application. Whenever a user sign in, his current lat and long are stored in a database at the server. Now let's say two more users sign in the application as well, how would I display nearby users in a 1km radius according to each user? As in how would I calculate if a certain user is in the proximity of another within a 1km radius?
s you are talking about relative short distances you can ignore the fact that the earth's surface is curved. you can now use the Pythagoras' theorem to calculate the the distance between the two. Just look up geographical distance on wikipedia for more information.
But let's say I have 30,000 users (online) in my database. That means do I have to check against 29,999 records each time a user signs in? This seems a bit heavy on the database end. Is there any other efficient way I can pull this off?
You can organize your queries within a tree so only pairs in a certain range get checked.
Have you looked into the latitude api?
Sent from my HTC Glacier using XDA App
@bompo: i am not sure i understand what u mean , can you please elaborate your point?
-------------------------------------
Sent via the XDA Tapatalk App
Related
Hey all, I was wondering if anyone was able to locate some radiation specifications for this phone? Cancer causing or not, I was wondering if the data exists.
I only get EDGE in my apartment, and I know that if I don't check use 2G only, my phone will be emitting a stronger signal in search of that 3G tower.
What about GPS? And does using the handset while using Navigation subject you to any more radiation than normal? I recall some pamphlets included with other phones limit the ear-to-phone range to a minimum of 1".
The energy in the radio waves our phones generate is less than the energy in the green light spectrum our eyes detect. What does that mean? Well you are probably safer using your phone than standing in a green field on a sunny day.
It takes a certain amount of energy to break DNA bonds. Green light can "bend" those bonds but not break them. Our phones radio waves can't even bend them.
Sent from my GT-I9000M using Tapatalk
So are you referring to maximum radiation emitted or average radiation according to usage set by the manufacturer? I know the radiation is low, but I'm curious about what that maximum is. Where would someone find those figures?
Sent from my T-Mobile G2 using XDA App
Oh come now, with wireless phones, wifi, microwaves, bluetooth (keyboards, mics and headsets) surrounding us everyday, you're going to worry about this phone?
Sent from my T-Mobile G2 using Tapatalk
Seriously, did I say I was worried? I have yet to mention why I need this data.
So here it is: I'm researching FCC regulations on radiation and its effects on mobile hardware development. This is part of a larger project which examines the correlation between technological advances and overall radiation exposure.
So don't be so quick to hate.
Nevertheless I found the data on my own. For anyone who is curious, it is:
1.310 W/kg Head and 0.784 W/kg Body
If you have the FCC ID for the phone (or any other device) then you can get the full reports from here: www fcc gov/oet/ea/fccid/ (silly system, won't let me post links and automatically turns a web address into a link so I can't post it as text)
GPS is receive only so using that shouldn't have any additional impact. However since the phone will be downloading maps etc... it will make the cell network link more active than if the navigation wasn't running.
Hi, I have an idea for an app but lack the knowhow to create it.
It is a relatively simple idea, an app that allows you and your friends to connect to a "racing track" (Made on google maps) and for it to show your friends speed, distance in front of you and the remaining distance of the track.
I have not been able to find anything similar to this on the market. If anyone thinks this app would be useful/cool and wants to develop it please let me know.
I like thw way your thinking but this has sooo many flaws that would just not make it marketable.
Is this for being on foot? If so, not bad, but quite dull I imagine.
If its by car, then youre inciting speed, using a mobile whilst driving, and not paying attention to the road.
Maybe if you had a start position, and then the end position, plus the route was secret til tou reached certain checkpoint?
posted direct from the legend that is the x10i... the fastest processor, the slowest response...
Lmao. It would be sweet. But I can't help think of death and a complete disregard for traffic laws while using this type of app. Hilarious.
Sent from my HTC Incredible using XDA App
Dr_Ownage said:
Hi, I have an idea for an app but lack the knowhow to create it.
It is a relatively simple idea, an app that allows you and your friends to connect to a "racing track" (Made on google maps) and for it to show your friends speed, distance in front of you and the remaining distance of the track.
I have not been able to find anything similar to this on the market. If anyone thinks this app would be useful/cool and wants to develop it please let me know.
Click to expand...
Click to collapse
If you are talking about running, I believe CardioTrainer has a feature to race people around the world. I have not tried it out.
i think (hope) that dr_ownage it's referring to something like trackaroo but reference to your friends / anyone who use the app on the same track.
For example I used to record and post videos when "racing" in Monza Gp Track once a year; it would be good to see pals times in real-time while driving and "race" a little bit.
Sometime you are half a lap distant of your pal and no one wants to stop and wait for the others (yep we are competitive and we have payed fair enough to waste even a single second).
+1 for the idea, I could've helped (I'm a java developer) but I have my hands full with other projects.
Regards
It does not necessarily require the disregard of laws. You see there would be certain areas of road where the speed limit is far beyond what someone would/could reach around an uphill curvy road.
On google maps you can make routes could we use this predetermined route as our race track?
Could we display this map on the bottom half of the screen?
on the top half could we have rectangular boxes filling the screen in width displaying |driver name|current speed|distance in front|
eg.
|John|60km/h|50m |
|Matt|62km/h|25m |
|Me |58km/h|-----| (display this one larger)
|Mike|65km/h|-20m|
then if mike we to over take me, his name would swap position with mine.
I was thinking there should be an emergency button so if someone has a problem you can hit the button and their name on everyones screen would start flashing so people know to stop and wait.
Could the times and tracks be stored and recorded, for ghost racing (beat your own times or friends time without them been there)?
I dont think this app would mean you have to break the law it would just be a good way to go driving together in general. There are lots of roads where the speed limit is FAR above what you can reach around when your going uphill and around a corner.
Sadly I noticed that the magnetometer of my SGS2 is rather imprecise...
In fact, even just after a lot of effort spent on calibrating it, I notice this:
- With the phone horizontal on a table, I point it to a direction that the compass indicates to be the "south" (exactly 180 degrees), but it appears to me that the phone is actually pointing something like 10 - 15 degrees SE.
- Then, I turn the phone exacly 180 degrees on the table, expecting at least the compass to show 0 degrees North. Well... it doesn't!!! It shows 12 degrees West...
Another thing: I noticed that if I turn the phone at constant angular speed, The compass indication does not! It speeds up next to the north and slows down considerably next to the south, indicating that there is an error the entity of which is related to the absolute orientation of the device.
And last, the indication is a bit unstable. It continuously jumps left and right by +/- 2 degrees.
It does all above with all the applications I was able to test that use the compass.
So in the end, my question is: is all this "normal"? Because really, I can't see any use of a compass with such a bad precision!
118 reads and not a single answer ... yes, ok... I may be a "little" paranoic...
But sure that no one except me cares about the precision of the magnetometer?
I can only share my personal experience and similar questions if this helps at all:
my compass seemed pretty accurate until I read your post and tried to compare with an analogue one. Well, it seems off to the West by about 10 degrees. But than again, I can neither trust the analogue one since it's just the first thing to have turned up, and no one's really verified it. I guess the only way to be sure is to compare GPS and compass direction data in compass app, which I'll attempt tomorrow. Plus, even within a meter from the analogue compass the digital one may start complaining for abnormal magnetic field. They seem to jam each other quite strongly, so there's no chance of visual comparison.
What worries me more, however, is that it never settles down. Like you said, it always trembles somewher in +-2 degrees, which is especially noticeable in Star Chart app (almost impossible to focus on a star long enough to tap it for information popup), and also visible when I disable filtering in compass app.
Hope someon more informed clarifies this for us.
I think you should just be happy that such a small MEMS chip is able to sense the magnetic field of the earth and give you a general idea where north is.....
If you read comments for star chart on the market, you'll notice how there are no complaints of picture trembling, which gives me all the reasons I need to worry about the quality of my particular unit. With the compass always moving around in a sector of 5 degrees it's virtually impossible to use any augmented reality apps, unless they have some filtering features (which they rarely do).
As a side note, after posting yesterday I took a second glance at the analogue compass I've been using as a reference and noticed that it's creator believed a circle to have around 400 degrees. Did another test, this time not relying on the numbers and now I'm pretty confident that the digital one is accurate.
But it still trembles all the time. In fact, if I look at sensor readings in *#0*# both gyroscope, accelerometer and magnetometer tremble a lot while the device lies on a steady surface. I should probably make a video when I get home, and also check the display units in a local mall to compare.
Sent from my GT-I9100 using XDA Premium App
Well, apparently, it seems to be normal for sensors on sgs2 to tremble this much -compared with a display model at media markt... Sad, but at least I won't have to exchange my unit
Sent from my GT-I9100 using XDA Premium App
Sighs... Go into settings, set the filter to high stop ur *****ing and nexttime do some research before posting.
Sent from my GT-I9100 using xda premium
Please, enlighten me, oh, wise one, where is this system-wide filter setting, that will alter the data an app without it's own filter reads directly from sensor?
Sent from my GT-I9100 using XDA Premium App
Hi Artik. Yes there actually seem to be something wrong on how the galaxy s2 sensors are handled, and it looks like it is a firmware issue. Read this thread:
http://forum.xda-developers.com/showthread.php?t=1213138
Inviato dal mio GT-I9100 usando Tapatalk
Wow, thanks, I should've found that one instead of hijacking this one =)
So now that Android 4.3 is out and we supposedly have BT 4 LE support, I'm wondering if anybody has found any good heart rate monitors that work with the Nexus 4. I looked at the Polar H7, but one reviewer has already indicated that it still doesn't work with the N4. So, anybody know of any good ones that do work?
There are already applications that do the trick and they don't have any need of 4.3
Just type heart rate at play store.
Sent from my NookColor using Tapatalk 4
RASTAVIPER said:
There are already applications that do the trick and they don't have any need of 4.3
Just type heart rate at play store.
Sent from my NookColor using Tapatalk 4
Click to expand...
Click to collapse
Having to hold your phone and keep a finger steadily on the camera isn't even close to being as useful or battery efficient as bluetooth connecting to something strapped to your arm.
Yeah I need something that monitors heart rate while I am cycling for several hours, running, or otherwise working out. Something compatible with strava or edmondo that isn't expensive as hell (the Polar H7 is the cheapest while being accurate - but it is reported incompatible with the N4.)
Try Runtastic Heart Rate. Its works really good!!! I been using it for along time. You dont need any extra accessories. Just put your finger on the flash light; it will do the rest.
FEATURES:
* Measure your pulse with the camera on your smartphone
* See your HRM results in a graph
* Variety of different, instant measurement types: resting HR, maximum HR, and HR before/after cardio
* Upload, store, and analyze your exercise results on the runtastic fitness site, www.runtastic.com
* Share your HRM results via your social networks: Facebook, Twitter, Google+ and E-mail
Ugh...what's the best way to explain to several people that you don't want to hold your finger on your phone for several hours while you ride your bike?
While being fantastic the new Bluetooth standard is also very buggy and a battery hog, so using one for a few hours along side another athletic assistant app would result in either a dead battery or a dead network board due to the heat.
Although rudimentary the light method is very accurate and easy to use, just use benchmarks and stop to take it rather the stream of data you are looking for.
Your best bet is to get a real heart rate monitor that saves to SD so you can compile at home, trying to get an accessory for a phone will only cost you twice as much for half as much efficiency.
Sent from my Nexus 4 using xda app-developers app
Runtastic Bluetooth
I've been using the Runtastic Smart Bluetooth Monitor for the last few weeks and I really like it. I don't notice the strap hardly at all when I'm running. The app is great too and mine came with a free upgrade to Runtastic Pro.
http://www.amazon.com/Runtastic-Heart-Rate-Combo-Monitor/dp/B00B84JQSE
I actually have an S8 and I am very interested by the Parrot Bebop 2 for skiing and hiking so here my questions:
-If using the S8's Wifi, how far and high the Bebop 2 can go?
-Is there any ways to use follow me feature for free on the S8? I mean any app can offer this feature for the Bebop on Android for free?
vegetaleb said:
I actually have an S8 and I am very interested by the Parrot Bebop 2 for skiing and hiking so here my questions:
-If using the S8's Wifi, how far and high the Bebop 2 can go?
-Is there any ways to use follow me feature for free on the S8? I mean any app can offer this feature for the Bebop on Android for free?
Click to expand...
Click to collapse
What's Bebop ?
Sent from my SM-G955F using Tapatalk
thahim said:
What's Bebop ?
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
It's a drone
vegetaleb said:
It's a drone
Click to expand...
Click to collapse
Sorry I don't get it.
Sent from my SM-G955F using Tapatalk
thahim said:
Sorry I don't get it.
Sent from my SM-G955F using Tapatalk
Click to expand...
Click to collapse
https://en.wikipedia.org/wiki/Quadcopter
A quadcopter, also called a quadrotor helicopter or quadrotor,[1] is a multirotor helicopter that is lifted and propelled by four rotors. Quadcopters are classified as rotorcraft, as opposed to fixed-wing aircraft, because their lift is generated by a set of rotors (vertically oriented propellers).
Quadcopters generally use two pairs of identical fixed pitched propellers; two clockwise (CW) and two counterclockwise (CCW). These use independent variation of the speed of each rotor to achieve control. By changing the speed of each rotor it is possible to specifically generate a desired total thrust; to locate for the centre of thrust both laterally and longitudinally; and to create a desired total torque, or turning force.[2]
Quadcopters differ from conventional helicopters, which use rotors that are able to vary the pitch of their blades dynamically as they move around the rotor hub. In the early days of flight, quadcopters (then referred to either as 'quadrotors' or 'helicopters') were seen as possible solutions to some of the persistent problems in vertical flight. Torque-induced control issues (as well as efficiency issues originating from the tail rotor, which generates no useful lift) can be eliminated by counter-rotation, and the relatively short blades are much easier to construct. A number of manned designs appeared in the 1920s and 1930s. These vehicles were among the first successful heavier-than-air vertical take off and landing (VTOL) vehicles.[3] However, early prototypes suffered from poor performance,[3] and latter prototypes required too much pilot work load, due to poor stability augmentation[4] and limited control authority.
In the late 2000s, advances in electronics allowed the production of cheap lightweight flight controllers, accelerometers (IMU), global positioning system and cameras. This resulted in the quadcopter configuration becoming popular for small unmanned aerial vehicles. With their small size and maneuverability, these quadcopters can be flown indoors as well as outdoors.[1][5]
At a small size, quadcopters are cheaper and more durable than conventional helicopters due to their mechanical simplicity.[6] Their smaller blades are also advantageous because they possess less kinetic energy, reducing their ability to cause damage. For small-scale quadcopters, this makes the vehicles safer for close interaction. It is also possible to fit quadcopters with guards that enclose the rotors, further reducing the potential for damage.[7] However, as size increases, fixed propeller quadcopters develop disadvantages over conventional helicopters. Increasing blade size increases their momentum. This means that changes in blade speed take longer, which negatively impacts control. Helicopters do not experience this problem as increasing the size of the rotor disk does not significantly impact the ability to control blade pitch.[8]
Click to expand...
Click to collapse