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
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
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
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
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
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
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
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
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
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
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
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
Jun 28, 2010
Is there a way to view the http response headers in an Activity once a web page has been loaded in a WebView? Seems like this should be possible, but I can't find any methods that expose the headers.
View 1 Replies
View Related
Mar 12, 2010
I need to access HTTP site thru code. I do not want to use Web Service of Android or iPhone.
View 2 Replies
View Related
May 19, 2009
can't access http://developer.android.com/
View 2 Replies
View Related
Jun 29, 2009
I understand the notion of overlays and all, but what if I want to display thousands of points on a map?The map becomes unresponsive after a few hundred OverlayItems are added.What's the best approach for doing this?
View 4 Replies
View Related
May 5, 2009
I am trying to write a code about catch lat. and long. points with the GPS, actually I am using the shell with the commands "geo fix" because the DDMS doesn't work in linux apparently, I am using this scripts:
getBestProvider(criteria, true); getLastKnownLocation(provider); requestLocationUpdates(provider, 2000, 10, locationListener);
The questions is: the program is working right now in the emulator, but what about if I move the program to the real cellphone? Is the same? I need think in something else?
View 2 Replies
View Related
Apr 29, 2010
I want to make a apps that check what's the nearest place from where the user is. I can easily get the location of the user and I have a list of places with latitude and longitude. What would be the best way to know the nearest place of the list against the current position. I could not find anything in the google APIs. I am worried I need to resort to my calculate and have to do math to calculate it.
View 2 Replies
View Related
Jan 6, 2010
I'm trying to add a label to each of the points on a map that I've created. Setting the "title" and "snippet" values of the OverlayItem don't seem to automatically cause these labels to appear however. I would've thought this would be a pretty simple and common requirement. Am I missing something? Can someone tell me if there's a function that does this?
View 3 Replies
View Related
Dec 6, 2009
I'm trying to develop an application which display the locations of contacts on a map (a Msn-like but for geo-localisation). I search to display a route between my own location and a contact location I want to join but I find yet no solution to do this. In the Android API and Maps add-on API I just find classes to display and listen Location, Distance, GeoPoint, etc., but no possibility to display a route between two points. Is it possible or not provided by the API?
View 7 Replies
View Related
May 23, 2010
Has anyone checked to see if 3 or more points will show up on an Incredible? I'm trying to see if there's hardware/driver/android support for more touch points. Why more touch points? I dunno. It could be cool for something. I read that the physical screen supports 10 but my first tests printing MotionEvent.getPointerCount() only give me 2.
View 2 Replies
View Related
Oct 7, 2009
Do anybody know how to draw path between two points on Map?
I need to draw a line, from one point to other...
I found one link (http://csie-tw.blogspot.com/2009/06/android-driving- direction-route-path.html) about this, but itīs not works well.
View 3 Replies
View Related
Sep 28, 2010
I would like to draw a curve(an arc) connecting three points in my screen PointA = (480,46) PointB = (160,137) PointC = (0,228) How to draw the curve using Android APIs ?
View 7 Replies
View Related
Sep 1, 2010
I am looking for a mapping application that will let me browse maps offline, as well as plot points onto the map. Does anyone have any ideas which app might let me do that? According to the MapDroyd app, it won't let me plot points
View 1 Replies
View Related
Dec 26, 2009
I'm making a game for android where I need to draw a lot of points that change position every frame. I use the ndk to get faster processing performance of the math/physics section of the game, so I need to use OpenGL to get the fastest performance. Right now, I make a texture every frame out of an array that holds the colors of every pixel. I am only able to get ~10 frames per second with this method. Is there anyway I could speed this up? ...
View 2 Replies
View Related
Aug 3, 2010
I have two devices - HTC Tattoo and Sony Ericsson Xperia X10. One has 145 DPI, the other 245 DPI.
When I specify font size for a TextView in points, like this:
CODE:...................
I get different physical size of text on these two devices. On 245 DPI, the text is barely readable.
Now, "pt" size is supposed to be physical. I.e., in my test, both text blocks should have letters of the same physical height. Which is not the case.
View 2 Replies
View Related
Aug 30, 2010
On onLocationChanged event I want to save my GPS route (Latitude , Longitude). Later I want to load this data and draw the route. Who is the best way to do this, by using some array type (and save or load by using database) or XML files or something else.
View 2 Replies
View Related
Sep 21, 2012
I'm working on creating a custom CWM Flashable ROM (zopo zp900).
I'm making a updater script, but I'm having trouble finding all the partitions for my phone, especially the /boot partition.
See the quote down there, that's what I'm trying to achieve except for my device.
Quote:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p25: 22dffe00 00000200 "system"
mmcblk0p29: 09800000 00000200 "lib"
mmcblk0p27: 090efc00 00000200 "cache"
mmcblk0p26: 496ffe00 00000200 "userdata"
mmcblk0p30: 014bfe00 00000200 "devlog"
mmcblk0p31: 00040000 00000200 "pdata"
mmcblk0p28: 00010000 00000200 "extra"
View 1 Replies
View Related
Jul 3, 2009
I need advice/pointers on how to display on a map multiple points that change somewhat infrequently based on the device's location. Currently, my application already displays in real-time the device's changing location on a map. I can also easily display the location of one of the other points of interest. However, I have not figured out a way to have both displayed on a map at the same time.
View 7 Replies
View Related
Sep 3, 2010
Is there a way to display points of interest like gas stations, hospitals etc., using google maps?
View 5 Replies
View Related