我试图通过发送以下意图对Deezer进行搜索:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.deezer.com/search/" + query));
this.startActivity(intent);在以前的版本中,web浏览器打开了一个链接,上面写着“opened”(或类似的内容)。但在目前的版本中,这已经行不通了。
有没有办法打开Deezer应用程序并执行搜索?我已经尝试了以下几点(但没有成功):
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("deezer://search/" + query));
this.startActivity(intent);发布于 2015-03-25 08:11:10
有很多deeplinks可以用来搜索Deezer应用程序中的内容。您确实有这样的基本搜索:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("deezer://www.deezer.com/search/" + query));
this.startActivity(intent);但你也可以更精确地说:
// Search for an artist, will display the best match
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("deezer-query://www.deezer.com/artist?query" + query));
this.startActivity(intent);
// Search for an album, will display the best match
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("deezer-query://www.deezer.com/album?query" + query));
this.startActivity(intent);
// Search for a track, will display the best match
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("deezer-query://www.deezer.com/track?query" + query));
this.startActivity(intent);https://stackoverflow.com/questions/29235490
复制相似问题