Code example for ContentProvider

Methods: attachInfo

		//MockContentResolver 초기화 
		private void init(String authority, Class<P> providerClass) throws Exception{
			mResolver = new MockContentResolver();
			P mProvider = providerClass.newInstance();
			mProvider.attachInfo(this, null);
			mResolver.addProvider(authority, mProvider);
		//MockContext를 이용해 만든 Activity에서 getContentResolver()를 호출 시 이 메소드가 호출됨 
		//MockContentResolver를 반환 
		public ContentResolver getContentResolver(){
			return mResolver;
Connect your IDE to all the code out there  Get Codota for Java