[android-developers] requestRouteToHost doesn't work

2010-05-13 Thread badzio
Hi all, my appliation must use gprs/edge/other sim connection, not wifi. Based on http://code.google.com/p/android/issues/detail?id=6518 and http://blogs.msdn.com/zhengpei/ I wrote: ret = connMan.requestRouteToHost(ConnectivityManager.TYPE_MOBILE, hostAddress); To lookup host I used function from

[android-developers] Re: How to choose connection type

2010-03-19 Thread badzio
is not determined by the protocol (HTTP or whatever) you use. Bluetooth is never used by by HTTP since there is no IP used below. regards Stefan On 18 Mrz., 14:10, badzio bad...@gmail.com wrote: Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost

[android-developers] Re: How to choose connection type

2010-03-19 Thread badzio
are used is not determined by the protocol (HTTP or whatever) you use. Bluetooth is never used by by HTTP since there is no IP used below. regards Stefan On 18 Mrz., 14:10, badzio bad...@gmail.com wrote: Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet

[android-developers] Re: How to choose connection type

2010-03-19 Thread badzio
Ok, I've found http://almondmendoza.com/2009/10/17/turn-off-turn-on-wifi-in-android-using-code-tutorial/ :) On 19 Mar, 09:21, badzio bad...@gmail.com wrote: Another question - how can I switch off wifi? Of course I mean from source code :) On 18 Mar, 21:39, spachner stefanpach

[android-developers] How to choose connection type

2010-03-18 Thread badzio
Hi, in my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs. Thanks for replies :) -- You received this

[android-developers] Get file's list

2010-02-23 Thread badzio
Hi all, I need to list all document files (*.doc/pdf/txt/xls) on android. I know that I can list media files (audio, movies, pictures) using embedded android's database (ContentResolver) with some URI, for example content://media/external/audio/media for audio files. Can I get document files

[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-15 Thread badzio
Concerning #2 (getResponseCode throws an exception), see workaround in this bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4523989 See bugs 4513568 and 4160499 for more HttpUrlConnection workarounds. On Feb 9, 5:23 am, badzio bad...@gmail.com wrote: Hi all, I want to use

[android-developers] Re: HttpPost, ssl and error 'Not trusted server certificate'

2010-02-14 Thread badzio
=4523989 See bugs 4513568 and 4160499 for more HttpUrlConnection workarounds. On Feb 9, 5:23 am, badzio bad...@gmail.com wrote: Hi all, I want to use HttpPost over https/ssl. I get 'Not trusted server certificate' error. I've found a lot of posts, seems that many people have similar

[android-developers] HttpPost, ssl and error 'Not trusted server certificate'

2010-02-09 Thread badzio
Hi all, I want to use HttpPost over https/ssl. I get 'Not trusted server certificate' error. I've found a lot of posts, seems that many people have similar problems and I've found two suggestions: 1) Change server's certificate. Current certificate is self-signed as localhost.localdomain.