<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmln...
分类:
编程语言 时间:
2014-12-25 16:32:00
阅读次数:
416
Android检测系统WIFI是否连接?如没有连接,显示提示框,提示进行设置,当点击设置进入系统WIFI界面后1秒钟,提示框自动消失。
代码:
public boolean isWifiConnected(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager) context
...
分类:
移动开发 时间:
2014-12-25 16:31:58
阅读次数:
171
转载自:http://blog.sina.com.cn/s/blog_61235faa0100z3dp.htmlCIImage *saveToSave = [filter outputImage];CGImageRef cgImg = [context createCGImage:saveToSav...
分类:
其他好文 时间:
2014-12-25 12:46:15
阅读次数:
149
基础示例 var hogan = require(‘hogan‘);
var template = ‘{{message}}‘;
var context = {message: ‘Hello template!‘};
var template = hogan.compile(template);
console.log(template.render(context));
//输...
分类:
其他好文 时间:
2014-12-25 11:34:17
阅读次数:
198
一、listviewpublicclassListViewForScrollViewextendsListView{publicListViewForScrollView(Contextcontext){super(context);}publicListViewForScrollView(Contextcontext,AttributeSetattrs){super(context,attrs);}publicListViewForScrollView(Contextcontext,AttributeS..
分类:
其他好文 时间:
2014-12-25 10:06:24
阅读次数:
158
可以在这找到解决方式:http://stackoverflow.com/questions/26797321/not-able-to-convert-zxing-into-portrait-mode-in-android重要的第二步2I在CameraManager类,方法getFramingRect替换intwidth=MIN_FRAME_WIDTH;intheight=MIN_FRAME_HEIGHT;
if(context.getResources().get..
分类:
移动开发 时间:
2014-12-24 18:33:44
阅读次数:
241
先看效果图:
这里。我们自定义了一个Textview
package com.example.myscroltextview.view;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Canvas;
import an...
分类:
其他好文 时间:
2014-12-24 18:04:59
阅读次数:
299
net文件夹》imageUp.ashxpublic void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; //上传配置 int size = 2; //文件大小限制,单位MB /...
分类:
Web程序 时间:
2014-12-24 17:39:54
阅读次数:
168
spring从2.5版本开始支持注解注入,注解注入可以省去很多的xml配置工作。由于注解是写入java代码中的,所以注解注入会失去一定的灵活性,我们要根据需要来选择是否启用注解注入。
我们首先看一个注解注入的实际例子,然后再详细介绍context:component-scan的使用。
如果你已经在用spring mvc的注解配置,那么你一定已经在使用注解注入了,本文不会涉及到sprin...
分类:
编程语言 时间:
2014-12-24 16:24:29
阅读次数:
252
最近项目中需要获取手机端的IP地址,查了资料,发现网上的资料不全:
网上方法一:(在WiFi下获取)
public String GetHostWifiIp() {
//获取wifi服务
WifiManager wifiManager = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);
...
分类:
移动开发 时间:
2014-12-24 16:22:04
阅读次数:
720