현재 예제를 보고 공부중에있는데
}
//마켓 정보 얻어오기
public static String getMarketVersionName(Context context) {
try {
MarketSession session = new MarketSession();
session.getContext ().setAndroidId ( "3000000000000000");
session.login("@gmail.com", "");
String query = "maps";
// AppsRequest appsRequest = AppsRequest.newBuilder()
// .setQuery(query)
// .setStartIndex(0)
// .setEntriesCount(10)
// .setOrderType(AppsRequest.OrderType.NEWEST)
// .setWithExtendedInfo(true).build();
AppsRequest appsRequest = AppsRequest.newBuilder()
.setQuery(query)
.setStartIndex(0).setEntriesCount(10)
.setWithExtendedInfo(true)
.build();
session.append(appsRequest, new Callback<AppsResponse>() { //<--여기 부분
@Override
public void onResult(ResponseContext context, AppsResponse response){
// Your code here
// response.getApp(0).getCreator() ...
// see AppsResponse class definition for more infos
System.out.println(response.getApp(0).getTitle());
System.out.println(response.getApp(0).getCreator());
System.out.println(response.getApp(0).getRating());
System.out.println(response.getApp(0).getRatingsCount());
System.out.println(response.getApp(0).getPrice());
System.out.println(response.getApp(0).getPriceCurrency());
System.out.println(response.getApp(0).getPriceMicros());
System.out.println(response.getApp(0).getSerializedSize());
System.out.println(response.getApp(0).getVersion());
System.out.println(response.getApp(0).getExtendedInfo().getDownloadsCountText());
}
}
);
session.flush();
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("------------------------end--------------------------");
/////////////////////////////////////
}
}
이부분에서 callback<>오류가 뜨네요 ,,,
오류 내용은 the time callback is not generic; it can not be parameterized widt arguments<Market.Appresponse>대체 무슨오류인지 모르겠습니다.
질게로