[Q] Faster WiFi Network Scanning in Android Devices - Android Q&A, Help & Troubleshooting

Hi XDA, long time lurker/fan, but i am newly registered user. (so i cant post to the developer forums yet )
I am working on a capstone project for school, what i need is to be able to take WiFi scans (no need to connect, only scan available network BSSID and signal Levels) quickly.
Currently, the Android API takes up to 5 seconds for a scan. Is there something i can do to improve my scan rate??
ANY, and i mean ANY! advice, ideas, or suggestion are welcome...

There really isnt any reason to increase the speed because it's fine at the speed as where it is at

ShadowTehAmazing said:
There really isnt any reason to increase the speed because it's fine at the speed as where it is at
Click to expand...
Click to collapse
I think you misunderstood me, I am working on an project/proof of concept app for indoor positioning which would benefit from quick repetitive scanning.
This would be for experimentation.

Related

[APP] [Q] looking for a smart wireless management app

No idea if this is in the right section of the forum, but here's my question:
I'm looking for a smart wireless management app for Android 2.2.2
Main function I'm looking for is the ability to let it automatically switch between WiFi and 3G as soon as signal drops below an exact specified value. Right now I have a fairly fast #G connection on Vodafone NL, but when I'm home I switch to Wifi to save cost. At some spots in my house the 3G connection is way faster then my Wifi signal, so I want it to atomatically choose the fastest connection. Anyone knows about an app that can do this?
And if there is no app like that out there, anyone willing to take a shot at developing one
Many thanx, DM
http://forum.xda-developers.com/showthread.php?t=1031743
Uhhm... thx for the link, but not really what I'm looking for. It sounds very complicated to install, and even more complicated to tweak. Isn't there any simple app out there that chooses the connection with best send/receive qualities?
Admin, please close thread, posted it somewhere else.

[Q] is there a way to improve gps without wifi?

Title says it all.
Thank you for all the inputs.
Sent from my ADR6425LVW using xda premium
There are some things you can do to edit your gps.conf file to improve GPS lock times. If you search the forum or on Google, you should find the answers.
Still, I have found that GPS on tablets and phones pretty much requires an internet connection to obtain a quick lock if its the first time using GPS since the device was restarted. On subsequent attempts, it usually locks pretty quickly with or without any internet connection. I think this is because it uses the internet connection to synchronize your phone's clock with an internet NTP server, to ensure the best possible synchronization with GPS satellites which work entirely off time signals.

[Q] How to test wifi speed

Hey guys,
sorry if this is a stupid question or its been asked before, but how can I test the wifi connection speed on my Prime? There must be a way to do it as all of the reviews have results..
Thanks for any info.
Search market for speed test speedtest.net have a nice app for that
Sent from my Transformer Prime TF201 using XDA Premium App
thanks for the reply but i've tried that, it just tests my internet connection speed. I want to test my local wifi network speed
That is what a wifi test is doing is checking your internet speed.
Now if you want to check your signal strength, then look in the market for apps called wifi analyzer.
Speedtest is serverside so the max speed is going to be dependant on my internet connection.. all i'm interested in is my local speed.
Thanks for the replies.
I don't think there is an android app out, but you could go the other way around.
You could download a lan speed test for your PC and then connect to the IP address of your tablet/connected device and test the speed?
Maybe that will work for you?
Dnakaman said:
I don't think there is an android app out, but you could go the other way around.
You could download a lan speed test for your PC and then connect to the IP address of your tablet/connected device and test the speed?
Maybe that will work for you?
Click to expand...
Click to collapse
Ah now that's thinking outside the box!
Cheers, i'll give it a go.
You need to have some sort of server and an app to download files from that server.
I tested download speed from my nasserver to my Galaxy S2 to compare Wifi G vs Wifi N.
Went from 2.26MB/s on G to 3.66 MB/s on N wifi.
"Filesize / seconds"
My laptop is 10mb/s on same N wifi netowrk.. could be faster but is only 100mbit lan netowork..
Transferring a (large) file from a server to your tablet would measure not only local WiFi speed, but Prime's internal capability of processing and storing data. I just did a quick test downloading a file from my work's Samba server and got speeds of about 0.6 and 2.5 kbytes/s for the Prime and my laptop, respectively. This is in line with kunddizzle, who got laptop speeds about four times faster that from the Prime.
This is interesting. Clearly, WiFi speed is not everything. Prime doesn't seem to be dealing very well with incoming data. Don't know whether it is due to its WiFi receiver, processor, memory, storage or something else. But, at least in two cases reported here, it is slower than a laptop on the same network.
UnitedWeFall said:
thanks for the reply but i've tried that, it just tests my internet connection speed. I want to test my local wifi network speed
Click to expand...
Click to collapse
Hi,
I known it's an old thread, but I had the same problem and was not able not find any local wifi speed test application after read a tons of forum. So I've just written an android application that can do that test. Maybe it will be useful for you too.
Just find "wifi speed test" (pzolee) on Google Play.
I am not a big expert in android programming but I tried to do my best

Why does Google Now want Wifi enabled (but not connected) for network-location?

Google Now gave me a rather interesting message: For better location, please enable Wifi. This works even when not connected to a network.
How can the phone figure out my location by using the Wifi antenna without connecting to any networks?
Here's how I originally thought it worked: The phone sees what cell towers are available, then uses data or Wifi to look them up in a database and determines a likely location. But now the app is telling me it really just wants the wifi antenna on. Why?
Because its like when you turn on your Bluetooth it scans near by devices..you connect with them or not its not the question but you can know that how many devices are in your range got it..
Same like when you turn on wifi it searches near by connection you connect or not Google find out your near by wifi networks.. By using that nearby wifi network already registered they find you approximately locations..
we all should be polite enough to press thanks for anyone who helped US.
Oh. Then Google records the location of Wifi networks, so visible networks can be used for location lookups?
Actually, that makes sense. I remember a couple years ago they got in trouble for wardriving and said it was unintentional. It could have been related to an effort to record the location of all visible networks.
That makes sense, but I'm running JellyTime on an Inspire, and it doesn't have the biggest battery. I don't want to leave wifi on all the time. Would it make sense to use Tasker to turn wifi on for a few minutes every hour, or would Google Now even be able to gather enough location info in such a short time?
Longstreet said:
That makes sense, but I'm running JellyTime on an Inspire, and it doesn't have the biggest battery. I don't want to leave wifi on all the time. Would it make sense to use Tasker to turn wifi on for a few minutes every hour, or would Google Now even be able to gather enough location info in such a short time?
Click to expand...
Click to collapse
Why not test it without Wifi? Leave google maps open with Wifi/GPS disabled while you're traveling. If that looks reasonably accurate, just leave them off.
As for timing, the phone can tell your location pretty quickly, but I don't know how Google Now is written. It would probably need to have specific logic that says "check location whenever wifi gets enabled". I'm not sure whether it does.
fenstre said:
Why not test it without Wifi? Leave google maps open with Wifi/GPS disabled while you're traveling. If that looks reasonably accurate, just leave them off.
Click to expand...
Click to collapse
That's what I've been doing. It works so far, I was just wondering if there was a better way.
It just doesn't seem to do much beyond weather and sports. Maybe I haven't used it long enough. Or maybe my life is so freaking boring it doesn't have a lot to work with!:laugh:
As for timing, the phone can tell your location pretty quickly, but I don't know how Google Now is written. It would probably need to have specific logic that says "check location whenever wifi gets enabled". I'm not sure whether it does.
Click to expand...
Click to collapse
I'm wondering. There's a lot of info out there on what it does and how it does it. But I'd be interested in the nuts and bolts, finding out exactly what it's doing and when and how.
It is kinda neat. But kinda unsettling too.

[Q] Why can't enable wifi direct alone in android 4.1 above

I find that in android 4.1 above, can't enable wifi-direct alone, it means I must enable wifi first and then use wifi-direct, but for android 4.0.x, the wifi-direct can enable alone, it's not very important for the use experience, but it's a big desent for the p2p transmission performance.
Because I use ping between two device connected with wifi-direct, and find that if open with wifi service together, there is a high delay 100-200 ms in every 10 second, the reason is the wifi service scan for other devices in every 10 second, I think it's a big problem for some application need low delay. So can anyone tell me the reason for this change, and if you have any solutions for the high delay, it's better.

Categories

Resources