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
@Resource注解@Resource 注解被用来激活一个命名资源(named resource)的依赖注入,在JavaEE应用程序中,该注解被典型地转换为绑定于JNDI context中的一个对象。 Spring确实支持使用@Resource通过JNDI lookup来解析对象,默认地,拥有与@...
分类:
编程语言 时间:
2014-08-09 18:36:18
阅读次数:
256
模版中的变量由context中的值来替换,如果在多个页面模版中含有相同的变量,比如:每个页面都需要{{user}},笨办法就是在每个页面的请求视图中都把user放到context中。Python代码fromdjango.temlateimportloader,Contextt=loader.get_...
分类:
其他好文 时间:
2014-08-09 18:34:28
阅读次数:
283
Android开发平台中,可通过TelephonyManager 获取本机号码。
TelephonyManager phoneMgr=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
txtPhoneNumber.setText(phoneMgr.getLine1Number()); //txtPhoneNu...
分类:
移动开发 时间:
2014-08-09 15:56:38
阅读次数:
267
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
最近学习EntityFramework,于是接触了LinqPad这款享誉已久的软件,深感相见恨晚。软件具体不多做介绍了,只简单介绍下使用方法。数据库操作添加数据库连接1,首先通过点击Add connection打开Choose Data Context窗口2,选择Defalt(LINQ to SQL...
分类:
其他好文 时间:
2014-08-08 20:45:26
阅读次数:
371
如果做一个弹出的控件,我们可以进行添加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
自定义FreeMarkerView的目的是为了放一些公共的变量到FreeMarker模版里面.spring-context.xml: --> --> 0 ...
分类:
Web程序 时间:
2014-08-08 17:56:16
阅读次数:
244
随着android的学习我们通过Context的openFileInput或是openFileOutput来打开文件的输入输出流时,程序锁打开的都是应用程序的数据文件夹里面的文件,这样所存储的文件的大小可能比较有限——毕竟手机内置的存储空间是有限的。 为了更好的存取应用程序的大文件数据,应用程序需....
分类:
其他好文 时间:
2014-08-08 15:34:36
阅读次数:
222
org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'configController' for bean class [net.mingy...
分类:
编程语言 时间:
2014-08-08 11:50:15
阅读次数:
464