---
title: "android之contentprovider"
author: "smllys"
date: "2012-12-27T17:41:23Z"
tags: []
categories: ["编程语言"]
slug: "android-contentprovider"
draft: false
lastmod: "2012-12-27T17:41:23Z"
id: 1755166
url: "https://smllys.iteye.com/blog/1755166"
---

当应用中需要创建数据库的是时候，需要在代码中继承contentprovider，中子contentprovider中执行数据库和数据表的创建。

当其他的应用需要访问这些数据库和数据表的时候，执行用url访问，url就会在子contentprovider中访问。