码迷,mamicode.com
首页 >  
搜索关键字:context    ( 11739个结果
Android OptionMenu
1、Javapackage com.fish.helloworld;import android.app.Activity;import android.content.Context;import android.graphics.Canvas;import android.graphics.Co...
分类:移动开发   时间:2014-08-03 17:47:15    阅读次数:262
关于FBO(FrameBuffer Object)的一些理解
先来整理下本人对FBO的理解。FBO是FrameBuffer Object的首字母简称。翻译过来就是帧缓冲区的意思。根据我的理解,OpenGL作为图形API,可以看做是画笔,帧缓冲区可以比作画布。我们使用OpenGL在帧缓冲区上“作画”(渲染)。 首先,我们需要建立OpenGL Context...
分类:其他好文   时间:2014-08-03 12:36:05    阅读次数:262
保存Bitmap到SD卡
public static void saveBitmapInExternalStorage(Bitmap bitmap,Context context) { try { if(IsExternalStorageAvailableAndWriteable()) { File extStorage = new File(Environment.getExternalStorageD...
分类:其他好文   时间:2014-08-02 20:59:34    阅读次数:190
CheckBoxPreference组件
CheckBoxPreference 选中为true 取消选中为false 它的值会以boolean的形式储存在SharedPreferences中。复制代码 2011-9-3 01:13:55 上传下载附件(27.8 KB) import android.content.Context;impor...
分类:其他好文   时间:2014-08-02 12:29:23    阅读次数:179
[WebGL入门]七,context的初始化
这一次,只是获取一下WebGL的context,然后将使用黑色将画面清空一下。但是事实上,这样就可以开始使用WebGL了。 接下来,会更具体更详细的介绍WebGL相关的处理,但不管做什么,基础都是很重要的,这次的内容还是需要彻底理解一下的。...
分类:Web程序   时间:2014-08-01 23:09:02    阅读次数:435
Spring 的 ApplicationEvent and ApplicationListener
什么是ApplicationContext? 它是Spring的核心,Context我们通常解释为上下文环境,但是理解成容器会更好些。 ApplicationContext则是应用的容器。 Spring把Bean(object)放在容器中,需要用就通过get方法取出来。 ApplicationEvent 是个抽象类,里面只有一个构造函数和一个长整型的timestamp。 Ap...
分类:移动开发   时间:2014-08-01 19:45:32    阅读次数:485
Android在ArrayAdapter<>里如何得到List<>的Items
public class ItemAdapter extends ArrayAdapter { private final List items;public AnswerItemAdapter(Context c, List items) { super(c, 0, items...
分类:移动开发   时间:2014-08-01 19:25:52    阅读次数:239
Spring父子上下文(WebApplicationContext)(防止事务失效)
如果你使用了listener监听器来加载配置,一般在Struts+Spring+Hibernate的项目中都是使用listener监听器的。如下 org.springframework.web.context.ContextLoaderListener Spring会创建一个Web...
分类:移动开发   时间:2014-08-01 19:13:02    阅读次数:247
android:强制关闭其他应用
强制关闭其他应用,可以使用ActivityManager,首先需要获取(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);然后可以调用其函数来进行关闭操作,目前来看有两种方法:1. void killBackgroundProces...
分类:移动开发   时间:2014-08-01 18:45:32    阅读次数:292
Android GridView 实现合并单元格效果
package?com.example.test; import?android.app.Activity; import?android.content.Context; import?android.graphics.Color; import?android.os.Bundle; import?android.view.Gravity; import?android.v...
分类:移动开发   时间:2014-08-01 13:59:21    阅读次数:2035
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!