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?

Android :: Detecting Ad Hoc WiFi Access Points


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.

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 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

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 :: HTTP / Access Points

Aug 1, 2009

I am just a beginner in the Android and was experimenting with HTTP.I have published the result of my experimentation through the following link http://kausikdas.webs.com/apps/blog/show/1489440-http-in-android. I am yet to get a device but working with the Simulator.I need feedbacks on the possible network problems I should handle. e.g.: 1. Do I need to discover the access points and dial one before connecting? 2. How can I know which services (Data/Data & Voice/Voice/No/Emergency etc.) current network is supporting? 3. Anything more to take care of?

View 3 Replies View Related

Android :: Network Connections / Access Points

Jul 16, 2010

I have some code that uses a network connection. I create a connection by calling openConnection() on a URL object. Is there any documentation that explains how this process works? Which access point is being used? When that access point becomes invalid, will it automatically switch to another accespoint? etc. I would like to use only WiFi access points and otherwise fail even tho 3G or GPRS could be available, is that possible?

View 7 Replies View Related

Android :: Info About Different Networks - Access Points Under SSID

Sep 17, 2010

If I use getScanResult() I will be able to get the information about different networks but for example if I am in a school where all access points are under network (SSID) "The school". Will getScanResult() filter out other access points than the one it's closest to and only return 1 BSSID for that network?

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

General :: Block Settings - But Allow Adding Access Points?

Nov 13, 2013

I use an AppLocker on my daughter's phone. It works great, but there is one problem it causes.I need to keep her and others out of the settings so it's blocked. But I need to be able to allow her to add access points so she's not eating away our data plan.

Is there an App Locker that will allow this? Or is there an alternative Wifi manager that I could install and allow that would work even when settings is blocked?

View 1 Replies View Related

HTC Hero :: Stopped Detecting Wifi Signals?

Jul 21, 2010

My 3 month old hero ( 3 UK - 1.6 ) has just stopped detecting ANY wi-fi signals. I haven't rooted. I have removed the battery and removed then reinstalled the we-fi application. I toggle on/ off / on the wi-fi and the phone indicates this as being on. My next idea is to factory reset the phone and if that does not work to send it back to 3.

View 1 Replies View Related

HTC Droid Eris :: Not Detecting Wifi - Bluetooth

Feb 15, 2010

My Eris is not detecting my home wireless network. I've reconfigured the network to try to solve this problem -- my laptop is working great on the Belkin N, but numerous attempts at adding a new wi-fi network to Eris have been unsuccessful. And Bluetooth isn't much better. I did get Eris to pair and connect with my headset, and I actually got it to pair with my laptop, but with the laptop, it says "paired but no connected", even when the laptop's reading indicate that there is a connection. I've checked and rechecked configuration, ensured that both PC and Eris were able to be discovered, scanned and re-scanned, but Eris still won't detect my network. My computer, though, does detect Eris as a wireless device.

View 11 Replies View Related

Android :: Connectivity On Android / No Access Points For 3G Or GPRS

May 5, 2010

I have a couple of questions about connectivity on Android, if anyone has any insight it would be great. What is the default when an application wants to wirelessly connect? Is it WLan? And if WLan is switched off or there is no access points around is it 3G or GPRS? Is a device always ip connected? Or when its disabled from WLan or 3G does it's lose its IP address?

Is an application, for example the browser only ever connected to one IP address? Or can it be connected to multiple addresses for each radio such as GPRS or WiFi (WLan)? Can an application decide which connection to open a socket to? For example can I create an application and decide whether to connect the socket to the WLan or GPRS? Or does the OS decide? Finally how do native applications handle connectivity? In the same manner?

View 3 Replies View Related

Samsung Captivate :: Error Starting Wifi Scan - Or Unable To Scan For Wifi Access

Aug 16, 2010

phones worked good other then gps issue. recently after iv had the phone for 30 days it just stopped scanning for wifi access and wont turn on wifi at all.

View 3 Replies View Related

Android :: WiFi Access Point On HTC Desire

Oct 1, 2010

How do I configure HTC desire as WiFi access point?

View 1 Replies View Related

Android :: Way To Control Access To Both Wifi / 3G GPRS?

Mar 5, 2010

I was wondering does anyone know if its possible to open a wifi and a 3g connection at the same time on Android? Is there any way to control access to both Wifi and 3g/GPRS data connections and use them at the same time?

View 2 Replies View Related

Android :: Make Emulator Access Web When PC Is On WiFi

Nov 2, 2010

I just realized that my emulator can't access the web. My computer runs on WiFi and perhaps the emulator isn't able to detect it. how to get it working? emulator isn't running on Airplane mode.

View 2 Replies View Related

Android :: Select WiFi Access Point?

Nov 13, 2010

I am developing one android application which select wifi access point from list of wifi. I used following code..

CODE:..............

My problem is i am not able select wifi access point..Every time it shows previous configured wifi details.

View 1 Replies View Related

Android :: WiFi Manager Not Remember Access Point

Sep 22, 2010

I am using ralink WiFi driver in android, I am able to connect to the access-point using the Wireless Settings provided in the Android, But once I connect to the network and restart the WiFi. I have to reconnect manually by providing the authentication key. WiFi Manager is not remembering the last access point used. I am using the Settings application provided by the android.

View 2 Replies View Related

Android :: Connecting To Strongest WiFi Access Point

Sep 9, 2010

I have two WiFi access points in my house, due to thick walls. When I turn on my phone it searches and connects to the first access point it finds, which is not necessarily the one with the strongest signal. e.g. I have one access point on channel 10 (lounge) and another on channel 1 (bedroom). When I'm in the lounge it always connects to the A/P in the bedroom, unless I actively "forget" that network, even though the signal strength of the one in the bedroom is VERY weak. Is there a way to force it to pick the strongest A/P?

View 3 Replies View Related

Android :: Manual IP Settings - Per WiFi Access Point?

Nov 22, 2010

I have a question regarding WiFi setup on my Android. When I'm at home, I want to use manual IP settings for my WiFi (instead of relying on DHCP). However, when I'm out using other WiFi (a coffee shop, or at school) I obviously need DHCP. How do I set manual IP settings on a per-wifi-hotspot basis?
(Galaxy S Vibrant)

View 1 Replies View Related

Android :: Any Application To Access WiFi Capable Printer?

Oct 1, 2010

I would like to have the ability to print documents (docs to go), texts, etc., directly from my phone. I am guessing that if such an app exists I would have to have a WiFi capable printer? Is there an app to do this? If so what do I need to have once installing this app?

View 1 Replies View Related

Android :: How To Estimate Position Using Wifi Access Point?

Oct 14, 2010

I'm (newbie) working on android platform 2.1 and i want to estimate my location using WiFi Access Point. i tried with GPS_Provider and Network_Provider but i want to estimate it specifically with WiFi AP in Network_Provider and not through Cell towers. is there any way to get my location through WiFi AP? if yes then how?

View 2 Replies View Related

Android :: OWA Access Denied Over 3G - Works Fine On WiFi

Aug 5, 2010

I have the Samsung Captivate, and I'm having a bit of an issue with my company's Exchange server. I don't want to sync it with my phone, I prefer to keep my work email separate, but I do occasionally need to use the Outlook Web Access portal on the server. When I'm on any WiFi connection, and I browse to my server's OWA, I get the login prompt, and I can successfully log in and do whatever I need to.

However, when on 3g, I get simply "Access Denied" without a login prompt at all. I've tried rebooting the phone, killing the browser process, clearing the caches in the browser, etc. None of that works. I administer this server myself, and it works with my wife's iphone just fine, as well as other android phones in the office.

View 1 Replies View Related

Android :: Method To Access Files From SD Card Over Wifi

Sep 19, 2010

I"m always connected by wifi at home and i would like to access my files through wifi. There are a lot of web browser based wifi apps (like Websharing) but I was wondering if there are any drag and drop methods as if I was connected by the USB cable. I want to access the SD card through My Computer and not Firefox.

View 19 Replies View Related

Android :: Wifi Connection - Connect To Access Point With Specific Name

Oct 1, 2010

I have an application in which I need to connect to an access point with a specific name. Therefor I start a scan (WifiManager.startScan()) and listen to BroadCastEvents of type SCAN_RESULTS_AVAILABLE_ACTION and NETWORK_STATE_CHANGED_ACTION. When the scan results are available, I check if my AP is found and if so I connect to it.

When I'm connected to the AP, I receive a NETWORK_STATE_CHANGED_ACTION and there I open a SocketConnection to my serverSocket. The problem I'm having is that on the moment that I'm connected to the AP, the DHCP request is not yet finished. This causes the opening of the socketConnection to throw a "SocketException: Network unreachable". A few moments later I see in the logcat logging: WifiStateTracker - DhcpHandler: DHCP request succeeded. If I try to connect after this message, all goes fine. is there an event that I can listen to that informs me that the DHCP request is done? Now I try to create a connection and while an error occurs I retry. This is however very dangerous for hanging (if e.g the dhcp fails, the loop will never stop...)

View 2 Replies View Related

Android :: Turn Off Data / Internet Access All Together When Not On Wifi Connection?

May 29, 2010

i just picked up a unlocked a moto cliq.. my concern is that i have never had a data plan on my account (at&t). this phone seems to have alot of different apps and widgets updating themselfs continuosly.. i have no problem with while im at home beacuse of my wifi that i can connect to.. but when im not on a wifi connection it seems to still be updating.. which i dont want until i upgrade my plan to unlimited data.. How do i turn off these features or turn off data/ internet acess all together when im not on a wifi connection?

View 4 Replies View Related

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

Sony Ericsson Xperia X10 :: Unable To Access Internet Through WiFi With Android 2.1

Dec 5, 2010

Unable to access Internet through WiFi connection using my xperia x10 with android 2.1. The phone connects to WiFi network but unable to browse the internet.

View 8 Replies View Related







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