2013년 7월 25일 목요일
animation not working in Fragments
use android.support.v4.app.Fragment instead of android.apps.Fragment.
2013년 7월 8일 월요일
2013년 7월 3일 수요일
Can not deserialize instance of java.util.ArrayList out of START_OBJECT
I found out the variable is not ArrayList. It doesn't have "[". Yes, it is json.
2013년 7월 2일 화요일
how to solve encoding problem of restTemplate
I encoded parameter of a url in UTF-8, and ran restTemplate. But I got error. I checked spelling of url again, but nothing was wrong. I found out restTemplate encoded url into Unicode.
The following is not working.
final String url = ApiUrls.areaBasedListApi + parameter;
// Initiate the request and return the results.
return restTemplate.getForObject(url, AreaBasedListData.class);
The following is working.
final String url = ApiUrls.areaBasedListApi + parameter;
// Initiate the request and return the results.
URI uri = new URI(url);
return restTemplate.getForObject(uri, AreaBasedListData.class);
The following is not working.
final String url = ApiUrls.areaBasedListApi + parameter;
// Initiate the request and return the results.
return restTemplate.getForObject(url, AreaBasedListData.class);
The following is working.
final String url = ApiUrls.areaBasedListApi + parameter;
// Initiate the request and return the results.
URI uri = new URI(url);
return restTemplate.getForObject(uri, AreaBasedListData.class);
피드 구독하기:
글 (Atom)