I just released v1.2.3 of Corporate Addressbook to the Android Market.
Features and fixes include:
- Support for Zimbra (Issue #47)
- Zimbra did not like the query string that was sent from the app, and threw and error 500 on each search request received. Turns out that it required that the optional range element be included in every request. Thanks Stephen and Martin for helping debug this issue.
- Error Code 0 (Issue #49)
- Looks like a lot of people were seeing an error code 0 returned when they were trying to log in. Debugging with a few folks led to two discoveries
- Spaces in username: I had failed to URL encode the URL that is generated by concatenating the server name with the username. As a result of this any spaces in the username caused HttpOptions to barf.
- Any exceptions thrown during the connection process were being handled, but the actual error string was not propagated up to the UI. Added some code to make the actual error string more user friendly. Hopefully this should help in getting to the bottom of connection issues.
- Looks like a lot of people were seeing an error code 0 returned when they were trying to log in. Debugging with a few folks led to two discoveries
- Login screen does not scroll in landscape mode (Issue #40)
- The login screen worked fine in portrait but was completely broken in the landscape mode. Dale picked up this issue and added a Scroll View to the UI. This should allow users to scroll to the Login button.
I’m using your code from Corporate Addressbook to try to get a list of mails from my gmail account. But I’m stuck, this is what I’m doing:
1. Sending FolderSync request:
String uri = mUri + “FolderSync”;
String xml = “\n”
+ “\n” +
“\t0\n”
+ “”;
2. This is the response I get back. So far so good
1
1311783116298
14
…
Mail:^sync_gmail_group
0
[Gmail]
12
Mail:DEFAULT
0
Inbox
2
…
3. Now I take the ServerId for Inbox (Mail:DEFAULT) and do a Search Request
String uri = mUri + “Search”;
String xml = “\n” +
“\n” +
“\n” +
“Mailbox\n” +
“\n” +
“\n” +
“Mail:DEFAULT\n” +
“mail\n” +
“\n” +
“\n” +
“\n” +
“”;
4. Here is where I get stuck. I get no e-mails in the response just a status 3 error.
3
Could you please help me. Thanks
I’m using your code from Corporate Addressbook to try to get a list of mails from my gmail account. But I’m stuck, this is what I’m doing:
1. Sending FolderSync request:
String uri = mUri + "FolderSync";
String xml = "\n"
+ "\n" +
"\t0\n"
+ "";
2. This is the response I get back. So far so good
1
1311783116298
14
...
Mail:^sync_gmail_group
0
[Gmail]
12
Mail:DEFAULT
0
Inbox
2
...
3. Now I take the ServerId for Inbox (Mail:DEFAULT) and do a Search Request
String uri = mUri + "Search";
String xml = "\n" +
"\n" +
"\n" +
"Mailbox\n" +
"\n" +
"\n" +
"Mail:DEFAULT\n" +
"mail\n" +
"\n" +
"\n" +
"\n" +
"";
4. Here is where I get stuck. I get no e-mails in the response just a status 3 error.
3
Could you please help me. Thanks
I’m sorry, I tried to post the code here but I don’t know how to post the xml code
I sent you a mail, but I’ll post it here too
http://pastebin.com/TarmdZSe
I would appreciate it much if you could take a look at it.