Android : Socket - Network Connect Drops After 15 Minutes / Way To Fix?
Dec 14, 2009
I am able to connect to a Socket on my PC from my HTC 1 phone, via IP and successfully transfer data in a thread that gets rescheduled every few seconds. The problem is that after 15 minutes or so, the connection drops and my debug traces give me the "Network unreachable". A further clue is that if I plug in or replug in the USB cable I get reconnected.
I'm wondering what programmatic function will reconnect to the PC without having to fiddle with the USB cable. I've tried Wifimanger.reconnect and reassociate, neither did the trick. Perhaps if I knew what actions were peformmed when the usb cable is plugged in (which shouldn't have anything to do with my connection) I would be able to program them into my exception path.
View 7 Replies
Jun 17, 2010
Plain and simple: When the Evo is fully charged, it begins running off its battery until you plug it back in. It DOES NOT trickle charge whatsoever after it reaches 100%. When you're using your Evo on the charger, and it's showing full 100% charge, it is running off the battery, not the AC plug. And then when you unplug it, well, we all know what happens next. The battery meter drops insanely fast to the actual charge of the battery, which could be very low, depending on how long it's been sitting idle at 100% on your charger. So all those times you've charged your Evo overnight, only to take it to work the next day and be at 80% within an hour? Your Evo was running off its battery for what I'm guessing was most of the night. It takes my Evo about an hour to two hours to fully charge back to 100%. Let's say you put your Evo on the charger at 11PM, it'll reach full charge by 1AM at the latest, and then run off its battery until whenever you take it off the charger in the morning. Workarounds? 1) Turn your Evo off while it's charging. 2) If you must leave it on for an alarm clock, put it in airplane mode and end all CPU intensive tasks to minimize battery drain. 3) When you wake up, unplug it for 10-20 minutes (still experimenting with this number), and then plug it back in to top it off. Onceit reaches 100%, take it off the charger, and go about your day. Try it out for yourself. When your Evo is 100% charged, take it off the charger immediately, and I highly doubt you will lose the 10%-15% within minutes.
View 49 Replies
View Related
Feb 10, 2010
I notice this more when Handcent/Chomp are installed but even without it seems that sometimes my phone just stops replicating. TXTS not gotten, emails not coming in emails not being sent (this is when I really notice it) Power cycle the phone and presto everything is back to working.
Example, I just restarted my phone and the email that was hanging was sent the very second it started back up then 51 emails came into my inbox
Anyone else have these issues? If not I think I'm gonna have to call VZW about another phone coming my way.
View 4 Replies
View Related
Mar 3, 2009
I have a java server which run on the pc, and a client which run on the G1. Now, G1 is connected to the pc with a usb cable. I want to use socket to let them communicate with each other, as what I did in the emulator. But now G1 cannot find the server through the ip "10.0.2.2".InetAddress serverAddr = InetAddress.getByName ("10.0.2.2"); ClientSocket = new Socket(serverAddr,SERVERPORT); The ClientSocket is null. What's the IP of the pc now?
View 3 Replies
View Related
Apr 29, 2010
Connect to my secured Wi-fi network fine when the network is broadcasting (network name not "hidden"). As soon as the network is no longer broadcasting (i.e. network is changed to stop broadcasting the name), DInc drops the wi-fi connection.
Settings menu shows the name of the network is remembers from previous connection but states that it is "not in range" (and remembered).
Wi-fi network is secured with WPA/WPA2 PSK and is an Apple Airport Extreme with (b, g, n).
Anyone experience this and appreciate any suggestions which would allow the DInc to stay connected to a "closed network."
View 5 Replies
View Related
Aug 6, 2010
So I have an android application that needs to connect to a socket server. That's simple enough if the socket server was running on my development machine. However the socket server is running on a server not only not on my own machine, but on a different subnet. How would I connect my emulator to the socket server? I understand how the port forwarding works to connect to the local machine, but I'm sort of confused on how I can redirect it across a subnet from my dev machine.
View 1 Replies
View Related
Feb 2, 2009
How can my host machine connect to emulator using socket? In my application, I need emulator to open a server socket, then host machine connects to emulator as a client. But when host creates the socket using "10.0.2.15:xxxxx" (xxxxx is the port which emulator is listenning), it doesn't work. I think maybe the address"10.0.2.15" goes wrong. Is it a local address behind the "virtual router" and the host can't find? If so, how to find a correct IP address of emulator?
View 4 Replies
View Related
Feb 6, 2010
I am trying to connect to server through HttpUrlConnection, but after sometimes it throws Socket.Net Exception :Network Unreachable. I tired alarm manager to wake up the phone and get the wifi lock but none seems to work .
Tell me what to do what should i check and alternative?
View 17 Replies
View Related
Feb 7, 2012
I'm trying to set up a basic network connection using droids but I'm having problems.my server program:
Code:
ServerSocket ss = new ServerSocket(8888);
while(!end){
//Server is waiting for client here, if needed[code]....
the server runs until it reaches ss.accept() like it should but the client still can't connect. The client usually times out and nothing happens
I'm running both these programs using eclipse on my computer. I set the premissions in the manifest for both programs to let them use the internet and I have the port forwarding .
View 2 Replies
View Related
Nov 7, 2010
I've experienced quite a lot of problems with the WiFi after updating the Andriod. Everytime I try to connect to my home-network i get that it failed to connect.
The phone didn't have any problems with this before the update.
Anyone had the same kind of problem, or anyone that has a smart fix for it?
View 1 Replies
View Related
Oct 4, 2010
I love my aria, i got it 9/29/10, for free from best buy because my contract expired... but ive already used 20MB and i only bought a 200MB plan... i might go to 2 gigs, but for an alternate, since my billing cycle ends the 28th of every month... if i disable application syncing, and mobile network from the hold menu... can i connect to my home wifi network, and go on the internet from there without that using any of my data plan?
View 5 Replies
View Related
Jun 29, 2010
We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the server can continue to write to this socket without getting any exceptions. Why? According to documentation Java sockets should throw exceptions if you try to write to a socket that is not reachable on the other end!
View 5 Replies
View Related
Nov 12, 2009
Essentially Im trying to get many many java clients connect to a socket on my ColdFusion server (Using the Socket Gateway). However before i even start to code this, Im a little confused about sockets and their performance. First of all, are sockets meant for many(1000+) clients connecting to one socket (say port 2202) on one server? How is the performance if all there waiting for is basically a ping, or something such that when these clients receive this "ping" they can go get some new data.
View 5 Replies
View Related
Jul 15, 2010
I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++).
My Android app fails (IOException) when I try to connect to my server socket on the PC.
Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip)
CODE:...........
This throws IOException after a timeout of 10seconds or so.
On the server side (in Ubuntu 8.10), I basically set up a Bluetooth server socket, along the lines described in the example bluez/sdp-register.c
Down below is my C++ program. To compile it do
g++ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include -o bt_server bt_server.cpp -lbluetooth
I can do the reverse succesfully, i.e. create a server socket in Android and connect from Linux, however this is not what I want to do!
I think either the problem has to do with my config of Ubuntu.
CODE:................
View 1 Replies
View Related
Feb 1, 2010
I am using a Nexus One with 2.1 SDK. I am having problems with a module in my application connecting programmatically to a network/AP.Monitoring the network,I see probe requests transmitting from the device, but I do not see an Authentication/Association request to the access point that I specify in the BSSID. Ultimately, I will perform a scan to determine valid AP BSSIDs, but for testing, I simply want to connect to a test AP which is in close proximity to my Nexus One.I have set the appropriate permissions in my manifest xml and am not seeing any negative log statements from adb.Any pointers or suggestions with using WifiManager to perform this action.
View 4 Replies
View Related
Apr 20, 2010
I am wondering if there is an app or a possible future one, that can connect to a school's network. Why it is more complicated (if you don't know), is that you have to connect to the wifi, then enter your student ID and password into the browser, then you can access the internet. (similar to some airports)I am able to connect with the browser, but apps that require internet won't work. Is there anyway to make an app that will keep you authenticated so that apps can use the wifi?
View 2 Replies
View Related
Apr 7, 2010
I'm doing a distributed system using Android for my research project.In order to test it, I have connected two emulator instances in the same host machine. However, I need to put these two instances in separate host machines and make them connect through the local network (Wi-fi).I have seen that the emulator runs behind a virtual router, so it seems that I would have to somehow configure such virtual router, in order to forward my requests.
View 2 Replies
View Related
Feb 2, 2009
Few quick questions that I was hoping someone could answer. The developers edition g1 should work fine on the At&t network, correct? Will it be able to connect to At&t's 3g network? If you could answer these I will be forever in debt to you, I have looked everywhere for this information only to lead me here, still confused.
View 2 Replies
View Related
Feb 8, 2010
Okay, here's the deal. I have a stable WiFi network, an Android phone (HTC Tattoo), and a computer. What I don't have is a way to get said computer to connect to the WiFi network, seeing that I don't have a wireless card.
The question I want to get an answer to is simply this: Is there any possibility to use my android phone as a wireless card, thus get my computer online? Or do I have to go out to get a wireless card? I don't want to use 3G, seeing that it's slow, and the WiFi net is included in my rent.
View 5 Replies
View Related
Jun 2, 2010
So it's been almost 2 weeks now and I still cannot connect to the 4G Network. The phone finds the 4G network, but cannot "obtain an IP address from Sprint".Sprint has been working on the problem, I get atleast 2 phone calls/emails from them daily, to try new things. But at this point, they have not been able to figure it out.At this point, I have to believe it is just a bad phone, but they said they cannot replace it until Friday, which thankfully is almost here.Hopefully no one else will see this problem. But if you have/do and figure out how to fix it, please let me know.
View 2 Replies
View Related
Nov 8, 2010
I have had no problems in the last 6 months connecting my evo to my uverse router until yesterday. I went out of town for the weekend and ever since I have returned my phone will not connect to my router.I have "forgotten" the network and re-entered the password but that didn't fix the problem either.It just says "obtaining IP address".
View 2 Replies
View Related
Jul 24, 2010
Just got the EVO 4 and everything seems to work OK, except that my PC (Windows 7, 64 bit) cannot see it when I connect to my home wireless network. The EVO 4g says it is connected to my network OK, but the phone doesn't appear as a device or drive anywhere on the network where I can see it. USB connection works OK.
View 3 Replies
View Related
Sep 3, 2010
I had the stock ota 2.2 update...followed the 2.2 root exploit and eas running good, until i had problems with my sms text messaging and decided to revert back to stock and now i cant connect to sprint network. i called sprint customer service and had me do a bunch of reset and put in codes and still NO DICE! It is still showing "S-OFF" when i go to HBOOT.
here are the specs on my phone:
ANDROID 2.2
BASEBAND VERSION 2.15.00.07.28
KERNEL VERSION 2.6.32.15-G746F4F0 htc-kernel@18-2 #58
BUILD NUMBER 3.26.651.6 CL218634 release-keys
SOFTWARE NUMBER 3.26.651.6
BROWSER VERSION Webkit 3.1
PRI VERSION 1.34_003
PRL VERSION 60662
I know i screwed up royally. My phone boots up to activate account but nothing happens. Is there anything else i can do? I'm going to Oakland tomorrow night for a vacancy and i would hate not having this bad ass phone with me as a DUD.
View 17 Replies
View Related
Apr 24, 2012
I got a chinese X12 dual sim phone because i really needed only 1 phone (had to carry around 2 of them).Phone works great, only problem is with the mobile networks. It can connect to GSM networks but it won't connect to a 3G network. The phone has 3G capabilities, 3G is enabled for the required sim, it finds the 3G network but it will not connect to it.
Sim works fine, had it in a Samsung i900 on 3G (WCDMA) The thing that surprises me most is that the phone came with android 4.0 instead of the 2.3.6 it was advertised, could this be the problem?
View 9 Replies
View Related
Apr 20, 2014
Today I installed a custom rom for my chinese phone Mlais mx65 everything works fine but, I can't connect to my network with my sim card, and it's weird i tried installing stock rom and other roms
View 8 Replies
View Related
Apr 27, 2014
'm having a problem with my Verizon G2. I had the Xposed framework installed, and I installed an app called Xorware, which is a toggle for 2G/3G/4G. I messed around with the settings in the app a little bit, and left it alone. A bit later, the phone stopped connecting to the mobile data network. I tried uninstalling the Xorware apps, wiping the cache on my phone, and even restoring to a backup where I don't have Xposed installed, and I'm still getting the same issue. Wifi still works, but every couple of minutes it disconnects randomly and then connects again. I also tried removing the SIM card for a few minutes after turning off the phone, and still, no luck.
View 1 Replies
View Related
Jun 14, 2010
I seem to have lost the ability to connect to the mobile network so can't connect to Market or web without wifi switched on. I have error message as follws: "Connection failed due to incorrect APN setting" I haven't touched any of these settings so a bit in the dark as to what the problem could be.
View 11 Replies
View Related
Dec 23, 2009
My bro offered me a htd Dream he bought in France with an SFR contract.I have successfully unlocked it, it has accepted my portuguese sims TMN and also OPTIMUSs but either way it does NOT connect to none of those networks.
View 3 Replies
View Related
Sep 21, 2010
I have a new Droid Incredible (upgraded from Eris ) but I cannot connect to an ad-hoc network I have setup. With wi-fi turned on, I scan for networks and nothing shows up. I even manually entered the network name and no security (which is how it's setup right now) and it still does not connect.
View 4 Replies
View Related
Nov 12, 2010
Every time I connect to the 4g network here in NY, my phone starts to lag horribly. Nothing is as snappy from the home screen scrolling to the keyboard to any apps that require a network connection.
View 11 Replies
View Related