我正在尝试使用 Deezer 的 Android SDK 进行搜索。但是,搜索结果始终为空。这是我的做法:
private final static String[] PERMISSIONS = new String[]{};
private DeezerConnect deezerConnect = new DeezerConnectImpl(DEEZER_APP_ID);
RequestListener handler = new CustomDeezerRequestHandler();
// User login
deezerConnect.authorize(MainActivity.this, PERMISSIONS, new MyDialogHandler());
// When the login is completed:
// Search request
DeezerRequest request = new DeezerRequest("/search/artist?q=radiohead");
deezerConnect.requestAsync(request, handler);
API 结果:
{"data":[],"total":0}