当前位置:
代码迷
>>
Android
>> SQLiteOpenHelper构造方法的context参数有关问题
详细解决方案
SQLiteOpenHelper构造方法的context参数有关问题
热度:
116
发布时间:
2016-05-01 22:21:08.0
SQLiteOpenHelper构造方法的context参数问题
我写了个DAO类进行数据库的操作,可是这个类并不是Context的子类。
我要new数据库助手类的时候Context参数应该写什么呢,原来在Activity里面写的,可以用this来当Context
------解决方案--------------------
android中通常都用provider,因此,你还是让你这个DAO类继承ContentProvider吧,这样你就可以使用getContext()方法了。
相关解决方案
Spring自动扫描 <context:componet-scan>和加了<context:include-filter>以后有什么区别
Servlet.service() for servlet [jsp] in context with path解决方案
@Context HttpServletRequest request,@Context HttpServletResponse response,该如何解决
ValueStack 和 Stack Context 有什么区别和联系?该怎么处理
怎么将字符串得到控件id 的后续有关问题The name 'dd1' does not exist in the current context
Context.RewritePath重写Url的一个有关问题
SQl asp.net C# context.Response.Write(ret);返回,该怎么解决
关于if (!Context.User.Identity.IsAuthenticated )用法解决办法
context.Response.Write和Response.Write有什么区别?该如何处理
Context.Request.ApplicationPath 什么意思?马上结分解决方法
SDK里的"context"(上下文)具体指的是什么?解决方案
在intellij IDE 中配置完服务器出现“duplicated context path ‘/’”错误
Name jdbc is not bound in this Context 怎么解决?
web.xml 中的listener context 标签是否冲突
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source
用@component的bean id, 在spring配置文件app.context.html中的摘引
(四)事件处理――(10)事件处理上下文(Event handler context)
紧急Error configuring application listener of class org.springframework.web.context.ContextLoaderListe
web.xml之<context-param>
tomcat起动报错:Error configuring application listener of class org.springframework.web.context.ContextLo
web.xml里边<context-param>与<init-param>的区别与作用
was修改下上文根后报Failed to load webapp: Context root /* is already bound.异常
JQuery每天函数:核心 jQuery(expression,[context])
web.xml的配备中<context-param>配置是起什么作用的
Websphere6.1部署项目时报错,连接不下jndi Name not found in context "java:"
org.springframework.web.context.ContextLoaderListener功用
web.xml资料中<context-param>元素的作用
一个org.springframework.web.context.ContextLoaderListener 找不到的错误
Canvas入门范例06:context.arcTo()的用法
精通Spring 之 注脚【<context:property-placeholder/>】