HTTPS via HttpClient in a service on Gingerbread - Android Software Development

Hi, got a strange problem ...
My service that uses HTTPS via HttpClient almost always fails on CyanogenMod7 when the screen is turned off *and* USB disconnected, but never fails when the screen is on. (The error is javax.net.ssl.SSLPeerUnverifiedException)
Never saw this behavious with CyanogenMod6.1!

solved.
http://stackoverflow.com/questions/...lient-during-a-service-failing-on-gingerbread
needed http://developer.android.com/reference/android/os/PowerManager.html#PARTIAL_WAKE_LOCK

Related

GPRS dead...?

Yesterday I was browsing the net normally as I do it every day at the same time and a little bit later began the problem: As the thunderbolt from a clear sky the GPRS connection stops answering my requests, Cannot connect everytime and when it is finally connected,then it does no traffic. That means:
-No E-Mail
-No Messenger
-No internet
-No WAP
-No MMS's
...No GPRS at all.
The connections are adjusted correctly(I did no changes when it began).
I have meaned,that it is a network problem...but wasn't. I've tried another phone to connect and successfuly. Evening tried also hard-reset. No solution. Now I had to re-flash the radio stack(2x). Again without solution. Tried use WirelessModem app. to connect to the internet. Successfuly connected,but again no traffic(only small upload I've noticed-no download) that results to a message,that the page cannot be found.
Yes forgot:Today morning was all OK and therefore I have thought,that was really a network problem. But after a little while was it back. Now I know,that the network is out of game.
Can anyone help me please,how to solve this BIG Problem?
The radio stack I am currently using is:1.18.

Problems connecting to Exchange server

OK, this has been working all week and suddenly yesterday, it seems that I could no longer connect to my Exchange server. When I try (from Pocket Outlook) it says "Connecting" and never connects. When I try from ActiveSync, it just sits there saying "Synchronising" and never does. Although I can certainly still see Exchange through the web mail feature and on my desktop PC. Anyone encountered a similar problem? Did it lie with the server or the client? It seems odd as there's nothing that I did between it last working and it not working. Since then, I've tried removing the ES from Activesync and readding it and rebooting the server. :?
I have been having similar problems. Sometimes it synchronises well, other times I get error messages. It seems to have nothing to do with whether the telephone reception has lots of bars, and it seems to work with G rather than U.
If you're using "SSL workaround" (http://support.microsoft.com/default.aspx?scid=kb;en-us;817379), and have multiple network cards, you must allow access to Exchange-OMA virtual directory from both/all IP addresses. This fixed similar problem on my side!
If this is when using your USB cable to connect to your pc to connect to the network, i had a similar problem, all AS 4.1 would do is say 'connecting'
I resolved it by removing the USB cable from the exec, removing AS, rebooting, reinstalling AS, rebooting, wait for AS to start then turn on the exec and connect via USB cable.
I had a similar problem a few days later that i was able to resolve by rebooting my PC with the exec disconnected, waiting for AS to start before reconnecting the switched on device.
HTH

VPN using new T-mobile UK ROM - cant get it to work

I work in IT and often need to conect to customer sites to resolve issues.
Many of our custoemrs allow me to have VPN access in.
This works a dream from XP PRO.
However I thought I would try and access 2 customers via VPN over WIFI from my MDA PRO which I have just upgraded to the latest T-mobile UK ROM.
I created my 2 connections both use PPTP.
I then tried to connect one of them , holding the stylus over the connection I wanted and selecting connect.
Nothing seems to happen.
Rebooted
tried again the same.
Disabled WIFI and tried over the usb connection and activesysnc, nothing.
How do you know when you are connected.
I removed the password info and tried to connect again.
Exepecting to be prompted for password.
nothing appears on the screen.
no error messages, I would expect to see conenction failed, or a disconnect option once you connect.
Am I missing something.???
No this is a problem with T Mobile, if you talk to their UK support team they are aware of the issue and have passed it to their German HQ to try to get fixed.
I guess the more people that complain the more likely they are to do something about it
Where did you get the 'latest' rom from? What version is it?

Syncronize with Exhange Server - Radio Issue?

Hi
I'm having a lot of headaches trying to get a few HTC phones in our network to syncronize with Exhange.
I have searched many of the forums on XDA, but only seem to get results relating to SSL certificates and Exchange.
My problem is:
The Majority of HTC devices do connect and synchronize with the Exchange Server without any problem. However, there is around 4 phones that does not ever seem to connect. If you try to sync, active sync will contact the server, the firewall will show that the connection is being re-directed to the relevant port on the Exchange server, but the phone will just sit at a screen showing "synchronizing" for ages, en then (sometimes) disconnect, without any error message, at this stage (while typing this, the phone as been saying "synchronizing" for 5 mins, still with no luck!
My personal phone (HTC Touch Pro) with the stock ROM and Radio, worked fine. Then I updated the ROM and the Radio Rom - resulting in the error to occur once again. I flashed back to the older Radio ROM, and the phone connected fine once again. But now suddenly, for the past week, the phone does not connect anymore (I did try un-ticking the Proxy, but that made no difference)
Any advice or any thread that might help would be fantastic!!
later
Marcello
Ps- After waiting another 10mins Active sync replied with a message "waiting for Network" - Yet, the phone is connected to my 3G connection.

Unable to connect to internet, failover set to baidu.com

Since yesterday, my Samsung galaxy tab 2 7.0 [GT-P3110] with CM 9.1.0 refused to connect to the internet over WiFi, so i thought of some issues with the tablet and installed wififixer and noticed something strange.
In the log i saw a lot of time this
Code:
>Network Check:
>I/O Exception{gateway ip address}:HTTPFail:Xms
>Network Check failed: trying again
Another strange thing was that it was trying to connect to baidu.com.
Being installed an older version i then did a factory reset and upgrade it to the latest CM11 nightly.
The update went smoothly, and now the wifi tried to connect to google.com [goodbye baidu.com] but as before, no internet connection.
Then i tough about a modem problem, and deleted the modem profile of my tablet [did the same on my tablet for the wifi profile]. still nothing, then i decided to change modem and connect the tablet to my phone via tethering, as ever nothing.
I searched a bit the net and downloaded some wifi fixer, changed the ip setting to static, changed some setting but nothing.
Sometimes the tablet seems to connect to the internet [in fact i was able to configure the google account and download a single app], but this last for a couple of second and then nothing [i don't even know what happened for making it to connect].
I hope someone have time to help me and thanks for the attention
EDIT: my fault, sometimes it continue trying to connect to baidu and not google

Categories

Resources