KISS icon indicating copy to clipboard operation
KISS copied to clipboard

Add music results to search

Open hhdri opened this issue 10 years ago • 4 comments

Hi, in my opinion music should be added to results. The launcher does anything one can expect except music results.

hhdri avatar Feb 16 '16 20:02 hhdri

This is actually possible by using Android's android.provider.MediaStore; it's just not very straight-forward and (big surprise) mostly undocumented. Since I couldn't find a ready-to-use example of this, I remembered the Vanilla Music music player, that does something very similar. Particularly the ch.blinklight.android.vanilla.MediaUtils ~~code dump~~ class looks promising: The buildMediaQuery method shows how to construct a cutom query for A/V media entries, the queryResolver method shows how to submit it.

@Neamar Is this something we actually want in KISS (off by default ofc)?

ntninja avatar Feb 16 '16 21:02 ntninja

Hum... good point. I think it's pretty lightweight, and as you say disabling it by default seems a sane option.

If you want to have a try :)

How reliable it the MediaStore API however? Is it working all the way down to Android v2.3?

Neamar avatar Feb 20 '16 22:02 Neamar

Not my needs, but it looks interesting. I'll try :)

ilmich avatar Mar 11 '16 11:03 ilmich

@ilmich Feel free! I wasn't planning on approaching this seriously for some time, so definitely go ahead! :smile_cat:

ntninja avatar Mar 11 '16 12:03 ntninja