FileDocCategorySizeDatePackage
MountReceiver.javaAPI DocAndroid 5.1 API1296Thu Mar 12 22:22:40 GMT 2015com.android.externalstorage

MountReceiver

public class MountReceiver extends android.content.BroadcastReceiver

Fields Summary
Constructors Summary
Methods Summary
public voidonReceive(android.content.Context context, android.content.Intent intent)

        final ContentProviderClient client = context.getContentResolver()
                .acquireContentProviderClient(ExternalStorageProvider.AUTHORITY);
        try {
            ((ExternalStorageProvider) client.getLocalContentProvider()).updateVolumes();
        } finally {
            ContentProviderClient.releaseQuietly(client);
        }