I fixed the authority in Email to point to the EmailProvider's authority, and I added the EmailProvider to the manifest.

This commit is contained in:
Marc Blank 2009-05-27 15:43:27 -07:00
parent f3d5b20236
commit c5f2a7af76
2 changed files with 7 additions and 1 deletions

View File

@ -169,5 +169,11 @@
android:grantUriPermissions="true" android:grantUriPermissions="true"
android:readPermission="com.android.email.permission.READ_ATTACHMENT" android:readPermission="com.android.email.permission.READ_ATTACHMENT"
/> />
<provider
android:name=".provider.EmailProvider"
android:authorities="com.android.email.provider"
android:multiprocess="true"
android:grantUriPermissions="true"
/>
</application> </application>
</manifest> </manifest>

View File

@ -40,7 +40,7 @@ import android.net.Uri;
public class Email { public class Email {
//private static final String TAG = "Email"; //private static final String TAG = "Email";
public static final String AUTHORITY = "com.marcblank.email.provider"; public static final String AUTHORITY = EmailProvider.EMAIL_AUTHORITY;
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY);
/** /**