[android-developers] Re: Contacts FAQ?

2010-03-03 Thread HCH
>From my reading of the sources (2.1) a custom account contact is not editable on the phone outside of the name fields. The contact editor does not read the relevant information out of the contacts.xml. It only reads enough to support what you'd see in the Facebook type account. The source fix w

[android-developers] Re: username and password for sample sync adapter

2010-02-19 Thread HCH
t; > http://.appspot.com/add_credentials > > Thepasswordfor user1 is test. > > 3) Modify the android code to use your server instance. > > > Sorry for the confusion so far, please let me know if you have more > > questions. > > > Thanks, > > Megha > > > On F

[android-developers] Re: username and password for sample sync adapter

2010-02-18 Thread HCH
to use your server instance. > > Sorry for the confusion so far, please let me know if you have more > questions. > > Thanks, > Megha > > On Feb 18, 10:28 am, HCH wrote: > > > > > Could someone on the android team please tell us what we should use > &g

[android-developers] Re: username and password for sample sync adapter

2010-02-18 Thread HCH
Could someone on the android team please tell us what we should use for the password when connecting to the SampleSyncAdapter server? On Feb 16, 4:19 pm, HCH wrote: > as for 1) > > - The source tree is not available for download that I can tell.  You > have to cut and paste each ind

[android-developers] Re: username and password for sample sync adapter

2010-02-16 Thread HCH
as for 1) - The source tree is not available for download that I can tell. You have to cut and paste each individual file from the html and reconstruct the source tree locally. - The source to the server has a directory but is not actually there. - What to use as a password isn't clear and I can'

[android-developers] Re: username and password for sample sync adapter

2010-02-16 Thread HCH
2) Use 2.0.1 emulator - it's fixed. In fact I would not bother with 2.0 as they have all been upgraded to 2.0.1 (not sure, but most likely). On Feb 16, 3:50 am, Sameer AM wrote: > Hello, > > I just got thesamplesyncadaptercode running on the emulator, but > how do I add account in it when it as

[android-developers] Re: Contacts FAQ?

2010-02-02 Thread HCH
Thanks so much for the link and of course many thanks to the original poster (Sam Steele). Anyone with android account and syncadapter questions should read his posts. My issue now is having the contacts app display and edit the standard fields (the stuff that lives in CommonDataKinds). I believ

[android-developers] Re: HTTP Post with header

2008-12-18 Thread HCH
generally: http post requires content-length unless you use chunked encoding. In the example you give set the content-length to the length of your StringEntity. On Dec 17, 4:00 am, agal wrote: > Hi, > > I want to do an HTTP Post in Android, using the HttpClient 4.0 APIs. > This is my code s

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-03 Thread HCH
If you are doing socket based communication to an HTTP server and tell it that you accept gzipped data then you'll get back gzipped data if it supports it. If the network (T-Mobile's proxy) thinks that's a bad idea and removes your accept gzip header then you won't get back gzipped data. If the

[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-02 Thread HCH
I haven't had much experience with T-Mobile 3G, but plenty with 2G (US). It appears that T-Mobile expects traffic on port 80 to be HTTP so I'm guessing that they add further filtering and optimization based on that expectation. If they are already compressing the data it would (conceivably) make

[android-developers] Re: Yet another HTTPS problem with HttpClient in Android SDK v1.0r1

2008-12-02 Thread HCH
I'm pretty new to Java so it took some digging, but here's my solution: HttpParams parameters = new BasicHttpParams(); SchemeRegistry schemeRegistry = new SchemeRegistry(); SSLSocketFactory sslSocketFactory = SSLSocketFactory.getSocketFactory (); sslSocketFactory.setHostnameVerifier (SSLSocketFac