码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
Test测试
package com.example.wireframe;import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint;import android.graphics.Pain...
分类:其他好文   时间:2014-08-09 21:02:29    阅读次数:233
Spring @Resource注解
@Resource注解@Resource 注解被用来激活一个命名资源(named resource)的依赖注入,在JavaEE应用程序中,该注解被典型地转换为绑定于JNDI context中的一个对象。 Spring确实支持使用@Resource通过JNDI lookup来解析对象,默认地,拥有与@...
分类:编程语言   时间:2014-08-09 18:36:18    阅读次数:256
Django RequestContext用法
模版中的变量由context中的值来替换,如果在多个页面模版中含有相同的变量,比如:每个页面都需要{{user}},笨办法就是在每个页面的请求视图中都把user放到context中。Python代码fromdjango.temlateimportloader,Contextt=loader.get_...
分类:其他好文   时间:2014-08-09 18:34:28    阅读次数:283
Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
Android开发平台中,可通过TelephonyManager 获取本机号码。 TelephonyManager phoneMgr=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); txtPhoneNumber.setText(phoneMgr.getLine1Number()); //txtPhoneNu...
分类:移动开发   时间:2014-08-09 15:56:38    阅读次数:267
AsyncHandler
package com.ango.deskclock; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.HandlerThread; /** * Helper class for managing the background...
分类:其他好文   时间:2014-08-09 15:55:18    阅读次数:201
LINQPad 4 初次使用心得
最近学习EntityFramework,于是接触了LinqPad这款享誉已久的软件,深感相见恨晚。软件具体不多做介绍了,只简单介绍下使用方法。数据库操作添加数据库连接1,首先通过点击Add connection打开Choose Data Context窗口2,选择Defalt(LINQ to SQL...
分类:其他好文   时间:2014-08-08 20:45:26    阅读次数:371
android一个弹出菜单的动画(二)
如果做一个弹出的控件,我们可以进行添加view: 写class SatelliteMenu extends FrameLayout private void init(Context context, AttributeSet attrs, int defStyle) { inflate(context, R.layout.sat_main, this); imgMain = (Ima...
分类:移动开发   时间:2014-08-08 18:17:26    阅读次数:428
Mingyang.net:自定义FreeMarkerView
自定义FreeMarkerView的目的是为了放一些公共的变量到FreeMarker模版里面.spring-context.xml: --> --> 0 ...
分类:Web程序   时间:2014-08-08 17:56:16    阅读次数:244
Adroid学习之SD卡的操作(1)
随着android的学习我们通过Context的openFileInput或是openFileOutput来打开文件的输入输出流时,程序锁打开的都是应用程序的数据文件夹里面的文件,这样所存储的文件的大小可能比较有限——毕竟手机内置的存储空间是有限的。 为了更好的存取应用程序的大文件数据,应用程序需....
分类:其他好文   时间:2014-08-08 15:34:36    阅读次数:222
Mingyang.net:org.springframework.context.annotation.ConflictingBeanDefinitionException
org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'configController' for bean class [net.mingy...
分类:编程语言   时间:2014-08-08 11:50:15    阅读次数:464
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!