`
ytfei
  • 浏览: 86710 次
社区版块
存档分类
最新评论
文章列表
http://en.wikipedia.org/wiki/Digest_access_authentication 基本原理: 1.客户端根据服务器端生成的nonce值 加上用户名和密码取MD5值,将这个值发送给服务器端,服务器端验证该值是否合法 具体请看http://en.wikipedia.org/wiki/Digest_access_authentication HTTPLOOK本地抓包测试,服务器端用户名 tomcat,密码 tomcat GET /club-test/IndexServlet HTTP/1.1 Accept: */* Accept-Language: zh-cn ...

android TIP

1. 主线程中重绘视图可用 xxView.invalidate(); 非主线程中重绘UI视图可以使用 xxView.postInvalidate(); 

Layout 笔记

android:layout_gravity 用于设置对齐方式 LinearLayout android:baselineAlignedChildIndex When a linear layout is part of another layout that is baseline aligned, it can specify which of its children to baseline align to (that is, which child TextView). 设置用于这个LinearLayout和其他VIEW对齐的BaseLine元素,ApiDemo中要把 andro ...
windows下下载的ubuntu ISO 安裝方法 1.安裝grub4dos 2.从ISO文件中加压出 casper/vmlinuz initrd.lz 并拷贝到C:/ 3.修改grub4dos的引导菜单:编辑c:/menu.lst加入 title Install ubuntu root (hd0,0) kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-10.04-desktop-i386.iso initrd /initrd.lz boot 参考资料: http://bbs.znpc.net/viewthread.php? ...
Handler提供了一种消息机制用于线程间的通信。 默认情况下,Handler是运行在和创建它的线程同一个线程里的。Looper的机制可以改变这一点,通过在构造函数出传递一个looper,可以指定handler在和looper相同线程中执行。 1.可以在线程中调用 Looper.prepare(); Looper.myLooper() 得到一个当前线程的 looper。 2.Looper.getMainLooper(); 可以得到主线程的looper 3.handler.post(new Runnable(){..}) runnable里的代码和handler是在同一个线程中执行的,当然h ...
http://topic.csdn.net/u/20101130/15/d2cbc4b8-05f5-471d-998d-545222263524.html  精品android源码 http://www.360doc.com/content/10/1119/13/474846_70648224.shtml 编译android源码 bookfm.com 读书频道 下载电子书 http://www.android123.com.cn/androidkaifa/list22.html

Service的点滴

1. LocalService: RemoteService: 可用于进程间通信,共享数据、操作等 2.调用startService启动一个服务 现在(android_2.1)回调的是 public int onStartCommand(Intent intent, int flags, int startId)方法 3. 一个服务进程如果有被bind,这个过程中如果被kill或异常中断,则会自动重新bind(会调用到service的onbind方法) 接着如果unbind后,该服务也将停止。 4.让服务在前台运行(更不容易被系统回收) 现在必须调用 startForeground( ...
NotificationManager mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); // Set the icon, scrolling text and timestamp 设置可以在状态栏上显示的图标和提示信息 Notification notification = new Notification(R.drawable.stat_sample, text, System.currentTimeMillis()); // The ...
数据加密标准(DES)是一个古老的对称密钥加密算法,目前已经不再使用。它不是一个很安全的算法。 三重DES(Triple-DES)仍然是很安全的,但是也只是在别无他法的情况下的一个较好的选择。显然高级加密标准(AES)是一个更 ...
初次接触ajax,看到的是一个很简单的例子: //针对各种浏览器建立一个http request的对象 function getHttpRequest(){   http_request = null;   if (window.XMLHttpRequest) {      http_request = new XMLHttpRequest();   } else if (window.ActiveXObject) { ...
抢救上班族英语(商业会话篇 13:21关注3G板块,有异动。 13:22主要关注龙头中卫国脉、中创信测、烽火通信等。 两只路桥个股,再怎么调,本博也是看好,为什么?那么大的市场机会,缩量整理,盘子又适中,这样有实质东西 ...
robbin: 用全文检索来实现JavaEye的垂直频道 http://robbin.iteye.com/blog/197526 “第一个OutOfMemoryError并不一定式问题点,只能说明在执行这个方法的时候,恰好OOM了。 你没有分析GC日志,HeapDump,JAVACore。在一个大型系统里,把全部代码看一遍哪个地方有内存泄漏可不是闹者玩的”
Global site tag (gtag.js) - Google Analytics