Back to project page anluwage.
The source code is released under:
GNU General Public License
If you think the Android project anluwage listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sudocode.mrsq.pricer.utils; /*from www . j a v a2 s . c om*/ import android.annotation.TargetApi; import android.app.Activity; import android.content.ComponentName; import android.content.ContentProvider; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; /** * Created by RM on 1/25/14. */ public class ProviderMetaDataUtils { @TargetApi(Build.VERSION_CODES.GINGERBREAD) public static <T extends ContentProvider> Bundle getProviderMetaData(T contentProvider) throws PackageManager.NameNotFoundException { ComponentName provider = new ComponentName(contentProvider.getContext(), contentProvider.getClass()); PackageManager manager = contentProvider.getContext().getPackageManager(); return manager.getProviderInfo(provider, PackageManager.GET_META_DATA).metaData; } }