문제

My current task involves fixing an Android music player that sucks too much RAM. By taking a look at the "Apps" section of the system settings, I found a mysterious (for me) process called Media. Here is a screenshot:

Media process

I would like to know more about this process and about the reason why it appears every time a song is played and disappears every time the playback stops. The only reference I have been able to find in the official documentation is this one.

What does the MediaProvider class do? Do you have any clue about what may be causing that process to be kept alive during the playback?

도움이 되었습니까?

해결책

I solved it myself. Turned out that a Cursor was being left open (I don't know whether accidentally or willfully), thus causing the Media process to appear.

Still, it is weird that, neither in the official SDK documentation nor on the Net, there is no mention about any MediaProvider-ish thing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top