I'm trying to retrieve Album Art from a single .mp3 file using Picasso but I am unable to do so. Whenever the application starts it shows nothing.
Here is my code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getInit();
String path = "/root/sdcard/Bom Diggy Diggy.mp3";
Picasso.with(this).load(new File(path)).into(album_art);
}
public void getInit() {
album_art = (ImageView) findViewById(R.id.album_art);
}
I also tried using cursor for getting Album Art but it do not work. Any help would be appreciated. Thank You