// Get favorite status for a photo
FavoriteQueryResponse favoriteStatus(long userId, long photoId) {
String urlToRequest = "http://tweetphotoapi.com/api/tpapi.svc/users/" + userId + "/favorites/" + photoId + ";deviceside=true";
try {
HttpConnection httpConn = HttpUtils.makeHttpConnection(urlToRequest, new HttpHeaders(), null, getCoverageBasedConnectionType(), "GET", this, false);
m_httpStatus = httpConn.getResponseCode();
if (m_httpStatus != 200) {
System.out.println("Error: " + m_httpStatus);
} else {
InputStream content = httpConn.openInputStream();
String xml = convertStreamToString(content);
DomFavoriteQueryResponseParser favoriteParser = new DomFavoriteQueryResponseParser();
favoriteParser.m_Xml = xml;
FavoriteQueryResponse favoriteStatus = favoriteParser.parse();
content.close();