码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
Android Service之LOCATION_SERVICE
Android提供了GPS功能LocationManager obj = (LocationManager)getSystemService(Context.LOCATION_SERVICE)Permission基本上是使用百度地图定位
分类:移动开发   时间:2014-08-06 14:41:11    阅读次数:211
spring-websocket框架搭建遇到的问题解决方案汇总
问题1 org.apache.tomcat.websocket.server.WsServerContainer cannot be cast to javax.websocket.server 严重: Servlet.service() for servlet [SpringMVC] in context with path [/ZHDM] threw exception [Request p...
分类:编程语言   时间:2014-08-06 11:59:01    阅读次数:12178
android 声音播放 mediaplay soundpool
首先在res文件夹内新建raw文件夹,并在raw内存放声音文件。mediaplay方法:在onCreate(Bundle saveInstanceState)方法内添加“MediaPlay mp=MediaPlayer.create(context,R.raw.backsound);”//用于初始化...
分类:移动开发   时间:2014-08-06 11:49:11    阅读次数:415
View实现事件监听DEMO(文本跟随触屏事件)
View 是一个显示的视图,内置的画布通过重写Ondraw(Canvas canvas);方法获得,同时提供图形绘制函数、触屏事件、按键事件等。现在利用一个简单的demo演示一下几个重要的常用到的方法:import android.content.Context;import android.gra...
分类:其他好文   时间:2014-08-06 11:43:31    阅读次数:223
android: button 属性
代码中常用属性:Button bt=new Buttion(Context context);setClickable(boolean clickable)设置按钮是否允许点击。clickable=true:允许点击clickable=false:禁止点击setBackgroundResource(...
分类:移动开发   时间:2014-08-06 11:36:41    阅读次数:252
jQuery()参数
jQuery的一个别名是$,这个没有什么疑问。$("div"),获取所有的div元素,没有问题;$("div", $("div .someClass")),这是一种更为普遍,但是却被我遗漏的方法;jQuery(expression,[context])expression,作为选择器;context...
分类:Web程序   时间:2014-08-06 01:37:10    阅读次数:247
netty的理解
netty作为nio应用的典范,在很多设计方面都值得我们在程序开发中学习。 1.事件驱动,三种事件的传播机制。一种是在channel上触发,一种是在pipeline上触发,一种是在context上触发。其中前两种触发的事件都会在整个pipeline上进行传播,第三种事件在context后的handl...
分类:Web程序   时间:2014-08-05 18:31:29    阅读次数:333
Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep
Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep严 重: Exception sending context initialized event t...
分类:编程语言   时间:2014-08-05 18:12:29    阅读次数:253
Jquery调用C#后台方法
前台代码: JS直接调用C#方法 ?后面的参数可以用context.Request.QueryString来访问,json对象里的参数【{Id:1,Name:"test"}】可以用context.Request.Form来访问创建一个ashx文件,ashx文件代码如下【内...
分类:Web程序   时间:2014-08-05 15:24:09    阅读次数:176
Android读取assets目录下的资源
1。获取资源的输入流 资源文件 sample.txt 位于 $PROJECT_HOME/assets/ 目录下,可以在 Activity 中通过 Context.getAssets().open(“sample.txt”) 方法获取输入流。注意:如果资源文件是文本文件则需要考虑文件的编码和换行符。....
分类:移动开发   时间:2014-08-05 13:35:29    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!