Android :: Signal Strength Of Each WiFi Access Points?

Aug 9, 2010

I am building an application reading the signal strength of each available WiFi access point. I've written code like:

wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
// Get WiFi status
WifiInfo info = wifi.getConnectionInfo();
textStatus.append(" WiFi Status: " + info.toString());
// List available networks
List<WifiConfiguration> configs = wifi.getConfiguredNetworks();

However, I have two problems:
In debugging, configs only contains one connection. However, I can see that there are several APs available in the system's wifi setting. i.e. configs is an incomplete list. I don't know how to get the signal strength in Wifi Configuration. I am using HTC Hero and Android 1.5.

Android :: Signal Strength of Each WiFi Access Points?


Android :: Code For Displaying Signal Strength Of Wifi Access Point

Nov 28, 2009

I need to develop an application which scans the wifi access points and also gives their signal strength.I wrote the code for scanning the access points but I dont know what packages to use for measuring the displaying strength.Can anyone please tell me how to display the signal strength, also give me the code for that.

View 2 Replies View Related

Android :: How To Scan Access Points And Select Strongest Signal?

May 13, 2010

I am currently trying to write a class in Android that will Scan for access points, calculate which access point has the best signal and then connect to that access point. So the application will be able to scan on the move and attach to new access points on the go. I have the scanning and calculation of the best signal working. But when it comes to attaching to the best access point I am having trouble. It appears that enableNetwork(netid, othersTrueFalse) is the only method for attaching to an Access point but this causes problems as from my Scan Results I am not able to get the id of the access point with the strongest signal.

This is my code:
---
public void doWifiScan(){ scanTask = new TimerTask() { public void run() { handler.post(new Runnable() { public void run() { sResults = wifiManager.scan(getBaseContext());
if(sResults!=null) Log.d("TIMER", "sResults count" + sResults.size());
ScanResult scan = wifiManager.calculateBestAP(sResults);
wifiManager.addNewAccessPoint(scan); } }); }};
t.schedule(scanTask, 3000, 30000); }
---

public ScanResult calculateBestAP(List<ScanResult> sResults){ ScanResult bestSignal = null;
for (ScanResult result : sResults) { if (bestSignal == null || WifiManager.compareSignalLevel(bestSignal.level, result.level) < 0) bestSignal = result;
} String message = String.format("%s networks found. %s is the strongest. %s is the bsid", sResults.size(), bestSignal.SSID, bestSignal.BSSID);
Log.d("sResult", message); return bestSignal; }
---
public void addNewAccessPoint(ScanResult scanResult){ WifiConfiguration wc = new WifiConfiguration();
wc.SSID = '"' + scanResult.SSID + '"';
//wc.preSharedKey = ""password""; wc.hiddenSSID = true;
wc.status = WifiConfiguration.Status.ENABLED;
wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP);
wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP);
wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK);
wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP);
wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP);
wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN);
int res = mainWifi.addNetwork(wc);
Log.d("WifiPreference", "add Network returned " + res );
boolean b = mainWifi.enableNetwork(res, false);
Log.d("WifiPreference", "enableNetwork returned " + b );
}
---

When I try to use addNewAccessPoint(ScanResult scanResult) it just adds another AP to the list in the settings application with the same name as the one with the best signal, so I end up with loads of duplicates and not actually attaching to them. Can anyone point me in the direction of a better solution?

View 12 Replies View Related

HTC EVO 4G :: Wifi Signal Strength Suck?

Jun 9, 2010

The wifi indicator sometimes only show 1bar. Meanwhile i sitting maybe 10 feet away from my modem/router. Speed test shows me getting 3200 kbps down and 1200 kbps up.With two bars I am getting 8700 down and 2400 up. I never get 3 bars. Any analysis of these numbers? Are they typical? Anything I can do to achieve 3 bars?

View 7 Replies View Related

Android :: Detecting Ad Hoc WiFi Access Points

Feb 9, 2009

I am developing an application on the android platform. The app performs continues WiFi scan and sends information about the list of visible access points to server. However, I need to remove all the Ad Hoc points. The android.net.wifi.ScanResult api does not seem to have any information on "mode" of the network. Is there anyway I can distinguish a given point is Ad Hoc or Master?

View 3 Replies View Related

HTC Desire HD :: Wifi Signal Strength Fluctuates?

Oct 31, 2010

I have been an avid iphone user for the past 2 years, but with having went through 4 iphone 4 handsets and still not happy i decided to make the jump. anyhow, on to the matter in hand, is anyone having wifi signal strength issues? If i'm close to the router. i.e 5-10feet and line of sight, it works fine, with 3 bars. but if i move farther away say into my kitchen, 20ft and through plasterboard walls it will drop to 2 bars. this is understandable, but it will then fluctuate between no bars, to 3, then to 1 then 2, then 3, then..... you get the drift. i can accept strength deterioration with distance, but for it to be so erratic i find it a bit strange. i have changed the channel my router broadcasts on and it hasn't made any difference. other than that very happy with the phone, just getting used to Android. Is anyone else noticing this with their wifi? all my other devices have a constant strength, be it 1, 2 or 3 bars and no erratic behavior. is it faulty wifi, should i sent it back to Amazon for a replacement?? or is it just the way it is?

View 2 Replies View Related

Android :: No Automatic WiFi Handover Between Access Points

Nov 16, 2010

I have a Samsung Galaxy S, running Froyo. I have an issue with WiFi handover, so I am posting here (in addition to the SGS section) in case this is an Android issue rather than an SGS-specific issue. I have two WiFi Access Points (APs) at home, both using the same SSID, but on different channels.

I expected the SGS to automatically move (handover) from one AP to another based on signal strengths that vary depending on where I am. However, this does not happen. It stays on the AP that it is connected to, even when moving to very poor signal levels. I need to manually trigger this (e.g by disconnecting from the AP). Any configuration or Android app. By the way, I also tried configuring the APs with different SSIDs, but this didn't work either.

View 1 Replies View Related

HTC Droid Eris :: Wifi 3G Signal Strength Is Crap

Jul 21, 2010

I have noticed that my wifi signal strength is crap. I can be in the same room about 4 ft away from my router and my signal strength is 2 bars on my wifi. Also on my 3g coverage I am at 1-2 bars max. When I 1st got my phone never had this problem. Any ideas?

View 16 Replies View Related

RSSI - Application To Read Signal Strength Of 3G / GSM / WiFi

Mar 17, 2009

I'm developing an application to read signal strength of 3G, GSM, Wifi.

Is there any classes that provides us with the RSSI of 3G signal and GSM signal?

The WifiManager Class provides the RSSI for wifi, but I can't find any for 3G and GSM. If there is no classes provided, is it difficult to start from scratch?

View 9 Replies View Related

General :: Droid X Says WiFi Signal Strength Poor To Nonexistent

Oct 10, 2011

I am virtually unable to get a wifi signal in my house on my droid x unless I am a few feet away from my router. None of my other wifi devices in my house are having this issue. When I check my wireless settings on my dx it says the signal strength is poor. I'm running rooted GB 4.5.602. Does the baseband have to do anything with this (BP_C_01.09.13P)?

View 2 Replies View Related

HTC EVO 4G :: WiFi Access Points With Manual Connect Only Option?

Oct 27, 2010

I think this should be simple enough but I haven't found a solution. I would like to leave my WiFi radio on. This way, the phone will automatically connect to certain access points (that I have previously connected to). However, there are certain access points that I would only like the phone to connect to if I elect to manually connect to them. I can't seem to find this setting anywhere. The only two options I have on access points once connected is to Forget network and Change password. I want it to remember those but only connect when I manually tell it to.

View 6 Replies View Related

General :: WiFi Access Points Enable Sync

Aug 21, 2013

I moved from Galaxy S4 to Galaxy Note 2.

Everytime I take a new phone, during initial setup it gives me to restore my settings from Google which when I enable I get all my saved wifi-access points.

This time however by mistake I didn't allow Google to restore that data in my Note 2 so now I haven't got any saved WiFi passwords.

I had backup of all user and system data from S4 via titanium backup and I tried to restore WiFi access points in Note2 which wont work (maybe compatibility or something, I don't know)

how can i re-enable or force a re-sync that Google to restore my WiFi access points to my mobile or what can i do to get all my saved WiFi profiles back.

View 5 Replies View Related

Samsung Moment :: Signal Strength Apply To Data Signal Or Just Voice Signal?

Nov 4, 2009

I want to reach out to others here before I take my Moment back to Best Buy to exchange it for another Moment.

My signal strength fluctuates wildly just sitting in the same spot. With the Hero I got a constant 5 of 6 bars, but the Moment will vary between 0 and 5 of 6 bars. But it's more complicated than that.

It seems that whenever the EVDO data kicks in, it causes the signal strength to drop to 0 or 1 bar. Once the data is idle, the EVDO indicator turns grey and then changes from EV(^v) to EV(D). At that point the single strength will return to 3 or 4 bars.

At times, though not as consistently or often, the EVDO connection will fall back to 1xRTT and will switch between them every few minutes. This will occur even when the signal strength bars are in the 3 to 4 range.

So, the my questions are...

Does the signal strength apply to the data signal or just the voice signal?

Is there any legitimate reason for the signal strength to vary wildly like I've described, even when sitting in the same recliner where the Hero had a constant 5 bar connection and data service that never wavered?

Is anyone else having signal strength and/or data service issues?

Should I exchange the Moment for another Moment or will I likely experience the same issue?

View 8 Replies View Related

General :: Galaxy Grand I9082 Duos - WiFi Signal Strength Showing Very Weak

Apr 17, 2013

I am using the Galaxy grand I9082 Duos. I have a simple problem in WIFI signal strength, on this device signal strength showing very weak for a distance of 3 to 4 meets away from the wifi router in the next room. But Laptop shows good strength at same point.

If I take my mobile close to router shows very good strength.

View 1 Replies View Related

Motorola Droid :: Roaming Between Multiple WiFi Access Points With Same SSID?

Nov 7, 2009

Just got my hands on a Droid and now I'm working out some kinks. My iPhone and laptop have no problem roaming aggressively between multiple access points we have at work that share the same SSID. I can't seem to get the Droid to do the same thing. I've tried downloading some wifi scanners, but they don't quite cut it. Is there a setting I'm missing? The expected behavior would be for the Droid to happily associate with any AP that shares a "remembered" SSID. Right now, it requires manually going into settings and associating with each and every AP in order for it to hop automatically as I move around the building.

View 4 Replies View Related

Android :: Android / How To Monitor WiFi Signal Strength

Jul 30, 2009

I would receive notifications when signal strength changes. I tried to create the following method and call it in the on Create():
private void initializeWiFiListener(){
Log.i(TAG, "executing initializeWiFiListener");
String connectivity_context = Context.WIFI_SERVICE;
final WifiManager wifi = (WifiManager)getSystemService(connectivity_context);
if(!wifi.isWifiEnabled()){
if(wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLING){
wifi.setWifiEnabled(true);}}
register Receiver(new BroadcastReceiver(){@Override
public void onReceive(Context context, Intent intent) {
WifiInfo info = wifi.getConnectionInfo();
//TODO: implement methods for action handling}
new IntentFilter(WifiManager.RSSI_CHANGED_ACTION));}

View 1 Replies View Related

Android :: WiFi Signal Strength In Android?

Jun 3, 2010

I am very new to android. Need help from Android Developers. Can anyone PLEASE help me how to find current WiFi signal strength in android. I'm trying very hard to get android to display the signal strength. Also, i would like to know if this works on emulator. If possible please provide sample code. I found out the following link but I am unable to write a simple program to display signal strength on emulator/phone. http://developer.android.com/reference/android/net/wifi/WifiInfo.html.

View 2 Replies View Related

Android :: Neighboring Cell Signal Strengths Better Than Those For Current Cell Signal Strength?

Jan 6, 2010

I'm writing an android application that collects cell signal strengths. I am having trouble getting the "current" cell signal strength, but I don't have any problem getting the "neighboring" cell signal strengths. To get the current cell signal strength, I created a PhoneStateListener and implemented the onSignalStrengthChanged callback. It works, but not very well. It seems like the signal strength hardly ever changes, and resolution jumps to only a few numbers. I would accept the answer that the resolution of the signal strength hardware is coarse, but when I use the TelephonyManager's getNeighboringCellInfo() method, it works much better. The signal strength readings from neighboring cells change frequently, and they have much better resolution.So, how can I get the current cell signal strength in the same way that I am getting the neighboring cell strengths? It seems odd to me that the functionality of the neighboring cells is better than the current cell. Am I missing something here?I would also like to directly call a method from the telephony manager to get current cell strength, as opposed to a listener, if possible. If anyone knows how, please let me know.

View 2 Replies View Related

Android :: Get GPS Signal Strength?

Jul 10, 2009

How can i get the gps signal strength and the number of satellites. im using android 1.1 sdk.

View 3 Replies View Related

Android :: How To GSM Signal Strength

Aug 26, 2010

I want to find the signal strength of GSM network. but not found any method in 1.5 sdk version is there is any alternative available to find the signal strength.

View 7 Replies View Related

Android :: GPS Signal Strength

Jul 17, 2010

I'm guessing that the GPS hardware in most Android phones is the same or close. If it makes a difference I have the Moto Cliq XT.I'm going hiking tomorrow and will be using Google's My Tracks program. I've tried it twice... the first time I could not get a signal despite being out in desert with nothing to block the signal. Next time I was in the mountains and once I had a signal, it was rock solid. Worked like a charm. But I did not want to take a chance and held it in my hand the entire time. I'm wondering if anyone has tried it while the phone was in their pocket. Any issues with sat lock on? This would be much easier. I also can't imagine that you'd not be able to use GPS while the phone was in your pocket as it's not really possible to have it in your hand all of the time.

View 4 Replies View Related

Android :: FM Signal Strength

Nov 18, 2010

I want to know the FM Radio signal strength in Android. For this I have to interact with hardware or not? Or is there any API which can directly give me the value of signal strength?

View 1 Replies View Related

Android :: Return Gps Signal Strength?

May 5, 2010

Is there a way to return the GPS signal Strength? Thank you for your input You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 3 Replies View Related

Android :: Getting Current Signal Strength

Jan 14, 2010

I am trying to figure out how to get the current signal strength of the Android 2.1 device. So far I can only find access to the SignalStrength object if I am listening for a change. I don't want to have to wait for the strength to change in order to see what the strength is.

View 2 Replies View Related

Android :: Measure GPS Signal Strength

Aug 23, 2010

How to measure GPS signal strength?

View 2 Replies View Related

Android :: Network Signal Strength In 1.6

Oct 28, 2010

How can we get network signal strength in android 1.6

View 1 Replies View Related

Android :: Instant Signal Strength?

Oct 8, 2010

I need to find a way to measure the current signal strength of Android phone, without the need to register a PhoneStateListener that God knows when it returns the actual asu.

something like: int signal = getPhoneSignal();

View 3 Replies View Related

Android :: Signal Strength Is Sometimes Marginal?

Sep 11, 2010

I am on Verizon network and was looking to get a Samsung Fascinate. I looked at the signal strength a 2 different stores, and both store Fascinate phones were about -10dBm higher than my 8320 Blackberry curve. Can I use this as signal comparison? Would I lose the ability to call in theory before the blackberry? I sometimes spend the weekend in a rural area where the signal strength is sometimes marginal on the blackberry at over -105 or so dBm is why I am asking.

View 3 Replies View Related

Android :: Determine Data Signal Strength

Nov 21, 2010

I know that it's possible to determine the data connection type (WIFI/or cellular) through Android, but is it possible to determine the cellular connection type and strength?

I have an app that downloads some images and I have found that on GPRS or on 3G with weak signal that this download process slows up the app unacceptably. What I want to do is say that if you have either WIFI or a strong and fast data connection then download; otherwise display a default placeholder image.

View 1 Replies View Related

Android :: Changing Signal Strength Programmatically

Sep 19, 2010

I want to change the network signal strength programmatic-ally in android..Even though signal is full i want to make it 50% or even 0%. Friends is it possible..?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved