Use explicit intent for MediaScannerConnection

b/10278751

Change-Id: I3fbc2b935a4fe6ec449c4bbf79400d4b48e613f7
This commit is contained in:
Marco Nelissen
2013-08-22 14:36:26 -07:00
parent 59210de17c
commit f7bcf1951c

View File

@@ -113,6 +113,9 @@ public class MediaScannerConnection implements ServiceConnection {
synchronized (this) {
if (!mConnected) {
Intent intent = new Intent(IMediaScannerService.class.getName());
intent.setComponent(
new ComponentName("com.android.providers.media",
"com.android.providers.media.MediaScannerService"));
mContext.bindService(intent, this, Context.BIND_AUTO_CREATE);
mConnected = true;
}