packagecom.parami.pkapp.view;importandroid.content.Context;importandroid.util.AttributeSet;importandroid.widget.VideoView;/***videoview全屏*@authorlhy**/publicclassMyVideoViewextendsVideoView{ publicMyVideoView(Contextcontext) { super(context); //TODOAuto..
分类:
其他好文 时间:
2014-07-24 17:55:17
阅读次数:
187
package com.cards.activity;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android...
分类:
移动开发 时间:
2014-07-24 11:30:12
阅读次数:
327
阅读到这么个类: public class FileDownloadList { /**上下文*/ private Context mContext; /**请求对象*/ private BaseRequestLims fileRequest = null; /**进度条对话框*/ private ...
分类:
其他好文 时间:
2014-07-23 20:51:25
阅读次数:
259
※效果
※使用方法
package com.fancyy.calendarweight;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable....
分类:
移动开发 时间:
2014-07-23 17:15:31
阅读次数:
275
一、WebService中添加session管理代码,用到了MessageContext类和ServiceContext类。代码如下: package com.hoo.service;import org.apache.axis2.context.MessageContext;import org....
分类:
Web程序 时间:
2014-07-23 15:20:06
阅读次数:
239
spring-db-context.xml:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http:..
分类:
编程语言 时间:
2014-07-23 13:44:37
阅读次数:
311
/**
* 判断服务是否后台运行
*
* @param context
* Context
* @param className
* 判断的服务名字
* @return true 在运行 false 不在运行
*/
public static boolean isServiceRun(Context mContext,...
分类:
移动开发 时间:
2014-07-23 13:38:06
阅读次数:
249
本文介绍11种行为型设计模式里的策略模式、模板方法、访问者模式。一、策略模式定义一系列的算法,把它们每个封装起来,并且使它们可相互替换。本模式使得算法可独立于使用它的客户而变化。1.Strategy定义所有支持的算法的公共接口。Context使用这个接口来调用某ConcreteStrategy定义的算法。public abstract class Strategy { public abst...
分类:
编程语言 时间:
2014-07-23 13:37:16
阅读次数:
247
这个插件真的很实用,我们可以使用以下语法来简化我们的工作,以下仅仅是示例:
Deleting
//delete all users where FirstName matches
context.Users.Delete(u => u.FirstName == "firstname");
Update
//update all tasks with status of 1 to stat...
分类:
其他好文 时间:
2014-07-23 13:09:46
阅读次数:
216
InputMethodManager manager = (InputMethodManager) mContext .getSystemService(Context.INPUT_METHOD_SERVICE); if (((Activity) mContext).getW...
分类:
其他好文 时间:
2014-07-23 12:58:46
阅读次数:
178