广播接收者(BroadcastReceiver)用于接收广播Intent,广播Intent的发送是通过调用Context.sendBroadcast()、Context.sendOrderedBroadcast()来实现的。通常一个广播Intent可以被订阅了此Intent的多个广播接收者所接收,这...
分类:
其他好文 时间:
2014-07-07 10:03:00
阅读次数:
271
android string.xml 转译、特殊字符问题xliff:g>标签介绍:%1$s: %2$s这个主要用于程序中,动态的插入内容时候使用,例如,当前时间:%1$s时 %2$s分然后通过程序,context.getString(R.string.time,"10","05");将会输出——当前...
分类:
其他好文 时间:
2014-07-07 00:33:33
阅读次数:
307
一、createScrollView1、First, select the panel you want to be your scroll view and right-click anywhere in the Scene View to bring up the context menu, t...
分类:
其他好文 时间:
2014-07-03 20:46:51
阅读次数:
278
文件1MainActivity.java:import android.app.Activity;import android.content.Context;import android.content.res.Resources;import android.os.Bundle;import a...
分类:
其他好文 时间:
2014-07-03 10:45:36
阅读次数:
160
(一)web.xml不同元素的加载顺序加载顺序与它们在 web.xml 文件中的先后顺序无关。即不会因为 filter 写在 listener 的前面而会先加载 filter。web.xml 的加载顺序是:ServletContext ->context-param -> listener -> f...
分类:
Web程序 时间:
2014-07-02 22:28:13
阅读次数:
232
ListView之SimpleAdapterSimpleAdapter的构造函数是:public SimpleAdapter (Context context, List> data, int resource, String[] from, int[] to)参数context:上下文,比如thi...
分类:
移动开发 时间:
2014-07-02 22:23:04
阅读次数:
273
2014-07-0212:00:19package com.example.getshareperference;import java.util.Map;import android.content.Context;import android.content.SharedPreferences;...
分类:
其他好文 时间:
2014-07-02 17:20:48
阅读次数:
215
-(UIColor*)colorOfPoint:(CGPoint)point{unsignedcharpixel[4]={0};CGColorSpaceRefcolorSpace=CGColorSpaceCreateDeviceRGB();CGContextRefcontext=CGBitmapContextCreate(pixel,1,1,8,4,colorSpace,kCGImageAlphaPremultipliedLast);CGContextTranslateCTM(context,-point.x..
分类:
其他好文 时间:
2014-07-02 06:28:29
阅读次数:
194
与spring+springmvc+ibatis相比,只需作相应的修改即可完成框架的整合。具体配置如下:web.xml SSI org.springframework.web.context.ContextLoaderListener contextConfigLocatio...
分类:
编程语言 时间:
2014-07-01 14:10:22
阅读次数:
245
//判断是否为wifi连接
publicbooleanisWifiConnected(Contextcontext){
if(context!=null){
ConnectivityManagermConnectivityManager=(ConnectivityManager)context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfomWiFiNetworkInfo=mConnectivityManager
.get..
分类:
移动开发 时间:
2014-07-01 09:43:03
阅读次数:
245