Friday, January 27, 2012

Dell pc suite troubles adb

I suddenly started to have a lot of problems connecting my device to adb.

I was pretty frequently getting this error

** daemon still not running error: cannot connect to daemon


I restarted computer, restarted the device (Samsung galaxy SII)... but no luck.

In the end it turned out, Dell pc suite was causing some problem. And that explains why I suddenly I started to get this problem.. coz I recently installed dell pc suite for my Dell streak.

I uninstalled Dell PC Suite.. and voila!! No more problems!

Thursday, January 5, 2012

HTTP Delete

We needed a api from our server team to remove a few resources in one shot. The server guy implemented a http DELETE rest api, and to support multiple resource removal in one shot, he decided to take the resource ids in the payload.

But one thing he missed, http protocol does not specify that there can be payload in the delete method. (and it's no more a REST api if it contains payload in delete, right?)

Looks like some http implementations in fact allows payload and that's why in his test, there was no problem.

But when I tried to request that from Android, voila... exception telling DELETE cannot write.