码迷,mamicode.com
首页 >  
搜索关键字:context switches    ( 11828个结果
debug debug Unable to add window android.view.View--permission denied for this window type
1 AlertDialog builder=new AlertDialog.Builder(context).setTitle("注意:") 2 .setIcon(R.drawable.dailog_icon) 3 .setMessa...
分类:移动开发   时间:2014-07-07 19:46:09    阅读次数:288
Java Web项目部署时 “Exploded Archive”模式部署时无效
在myeclipse中部署项目时,当Deploy type为Exploded Archive(deveplopment mode)时,finish按钮为灰色,无法部署的解决方法: 1.project上右键properties->MyEclipse->web->web context-root为空 输...
分类:编程语言   时间:2014-07-07 19:38:31    阅读次数:282
Android内存泄露总结
Android可能发生内存泄露的地方总结:1.查询数据库没有关闭游标2.构建adapter时,没有使用缓存的convertView3.Bitmap对象不使用的时候调用recycle()方法释放内存4.释放对象的引用5.单例模式引用context,如果使用actvitiy-context,会造成内存泄...
分类:移动开发   时间:2014-07-01 21:27:23    阅读次数:237
Android -- Service的开启关闭与生命周期
Service是Android 系统中的四大组件之一,是在一段不定的时间运行在后台,不和用户交互应用组件。service可以在很多场合的应用中使用,比如播放多媒体的时候用户启动了其他Activity这个时候程序要在后台继续播放,比如检测SD卡上文件的变化等等。生命周期 context.startSe...
分类:移动开发   时间:2014-07-01 20:56:10    阅读次数:233
android 小方法
小方法1.获取屏幕分辨率: 1 public class BaseTools { 2 3 public static int getWindowWidth(Context context) { 4 // 获取屏幕分辨率 5 WindowManager wm ...
分类:移动开发   时间:2014-07-01 20:41:22    阅读次数:189
spring <context:component-scan>使用说明(转)
在xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的java文件,如果扫描到有@Component @Controller@Service等这些注解的类,则把这些类注册为bean注意:如果配置了那么标签就可以不用再xml中配置了,因为前者包含了后者。另外还提供了....
分类:编程语言   时间:2014-07-01 11:35:32    阅读次数:172
LayoutInflater的inflate函数用法(转)
LayoutInflater作用是将layout的xml布局文件实例化为View类对象。获取LayoutInflater的方法有如下三种:LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT.....
分类:其他好文   时间:2014-06-30 21:43:06    阅读次数:248
与屏幕亮度调节相关的各种方法整理
public class SystemManager { private Context mContext; private static SystemManager sInstance; private SystemManager(final Context context) { mContext = context; } public static SystemManage...
分类:其他好文   时间:2014-06-30 16:16:29    阅读次数:318
动画(转)
IOS中的动画有两大类1.UIView的视图动画2.Layer的动画 UIView的动画也是基于Layer的动画动画的代码格式都很固定1.UIView动画一般方式[UIView beginAnimations:@"ddd" context:nil];//设置动画[UIView commitAnima...
分类:其他好文   时间:2014-06-30 13:13:47    阅读次数:184
十七.jQuery源码解析之入口方法Sizzle(1)
函数Sizzle(selector,context,results,seed)用于查找与选择器表达式selector匹配的元素集合.该函数是选择器引擎的入口. 函数Sizzle执行的6个关键步骤如下: 1.解析选择器表达式,解析出块表达式和关系符. 2.如...
分类:Web程序   时间:2014-06-29 19:49:01    阅读次数:220
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!