Re: [android-developers] HttpsURLConnection returns -1 code on second request

2010-05-18 Thread peeyush varshney
Hi, Please chech this: private boolean CheckInternetConnection { Log.d(TAG, CheckInternetConnection() ); try { URL url = new URL(http://www.google.com/;);// ... HttpURLConnection urlc = (HttpURLConnection) url.openConnection();

[android-developers] HttpsURLConnection returns -1 code on second request

2010-05-15 Thread Arkaitz Jimenez
Hi all, I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357 This is Android 1.5 SDK. I happen to call several times below code(which is in a method) with the same url and it fails intermitently. When it fails, there is no exception, the

Re: [android-developers] HttpsURLConnection returns -1 code on second request

2010-05-15 Thread Kostya Vasilyev
Hi, Can you try setting http connection keep-alive to off, see if that helps? 15 мая, 2010 10:21 PM пользователь Arkaitz Jimenez arkai...@gmail.com написал: Hi all, I think I'm experiencing the same as http://groups.google.com/group/android-developers/msg/9d37d64aad0ee357 This is Android 1.5