为什么要使用Android中的自定义内容供应商? [英] Why should I use custom content provider in Android?

查看:100
本文介绍了为什么要使用Android中的自定义内容供应商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是使用自定义的内容提供商的优势是什么? 为什么这样的内容提供商要优于它包装SQL查询普通类的?

What are advantages of using custom content provider? Why such content provider is superior of plain class that wraps SQL queries?

推荐答案

内容提供商可以从其它处理和所需的一些机制Android电子像全局搜索。也有一些可用的类帮助你处理为您节省一些manging内存的麻烦的内容供应商。

Content providers can be used from other processes and are required by some mechanisms on Android like the global search. There are also some classes available that help you deal with content providers that save you some of the hassle of manging memory.

这篇关于为什么要使用Android中的自定义内容供应商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆