2012年9月12日
摘要: NSNumberFormatter *formatter =[[[NSNumberFormatter alloc] init] autorelease];formatter .formatWidth = 2;formatter.paddingCharacter = @"0";[formatter stringFromNumber:[NSNumber numberWithInt:8]]结果为08 阅读全文
posted @ 2012-09-12 17:25 androidabc08 阅读(187) 评论(0) 推荐(0) 编辑
  2012年9月5日
摘要: Here's a less-ugly solution that works for both iOS4 and 5:@implementationUINavigationBar(CustomBackground)-(UIImage*)barBackground{ return[UIImage imageNamed:@"top-navigation-bar.png"];}-(void)didMoveToSuperview{ //iOS5 only if([self respondsToSelector:@selector(setBackgroundImage:for 阅读全文
posted @ 2012-09-05 14:17 androidabc08 阅读(197) 评论(0) 推荐(0) 编辑
  2012年4月28日
摘要: public static boolean isAppFront(Context context) { ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); List<RunningAppProcessInfo> rapis = am.getRunningAppProcesses(); for (RunningAppProcessInfo rapi : rapis) { if (rapi.processName.equals(context.getPack 阅读全文
posted @ 2012-04-28 12:47 androidabc08 阅读(373) 评论(0) 推荐(0) 编辑
  2012年4月25日
摘要: Intent intent = new Intent(Intent.ACTION_VIEW); // market://details?id=com.example.your.package//产品页面 Uri uri = Uri.parse("market://details?id=packename"); //产品搜索 Uri.parse("market://search?q=packename"); intent.setData(uri); startActivity(intent); 阅读全文
posted @ 2012-04-25 14:17 androidabc08 阅读(209) 评论(0) 推荐(0) 编辑
  2012年4月12日
摘要: 导读:酷壳网陈皓发表一篇《我们需要专职的QA吗?》,引发了开发者们的激烈讨论。作者认为不需要全职的QA,甚至不需要QA这一专职角色或部门,因为,不懂开发的人必然做不好测试,就像不懂开发的研发经理必然管不好研发团队一样。一起来看下:这个文章必然是有争议的,我在我的微博上讨论过很多次了,每次都是很有争议的。有不同的观点,有争论总是一件好事,这样可以引发大家的思考。所以,对于我的这篇博文,如果你赞同我的观点,我会感到高兴,如果你会去认真地深入思考,我也会高兴,如果你反对,没关系,可以讨论。在此之前,我想说明一下我观点里的这个“专职QA”是怎么定义的。其是很多公司成立的专门做测试的技术人员,仅测试不开 阅读全文
posted @ 2012-04-12 11:02 androidabc08 阅读(217) 评论(0) 推荐(0) 编辑
  2012年4月9日
摘要: Don’t trust humans to do all of your testing – not even experts. John Senner, Koa Metter and Emory Myers of MokaSocial reveal how to delegate the dirty workThis article first appeared inissue 219of .net magazine - the world's best-selling magazine for web designers and developersA number of fact 阅读全文
posted @ 2012-04-09 13:41 androidabc08 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 移动开发应用程序的教程系列,包括如何设计触摸屏设备,以及怎样打造一款成功的游戏。以下是其Android、iOS和Windows Phone平台的15个设计要点:一般应用教程1.在开发者的引导下理解手机框架手机应用顾问Jonathan Stark撰写了两本关于iPhone和Android开发的书籍。在此他陈述如何判定最佳应用制作方式,并分享了若干优秀的开发工具。2.如何基于“触屏”装置设计内容手指和拇指触控彻底改变了台式机的操作惯例。互动设计师Josh Clark强调了在针对触屏装置设计内容时应该注意的重要问题。并比较了iPhone,iPad以及Android的灵活触屏界面。3.如何创造出杰出的 阅读全文
posted @ 2012-04-09 10:31 androidabc08 阅读(168) 评论(0) 推荐(0) 编辑
  2012年3月29日
摘要: http://android.okhelp.cz/html-list-tag-in-android-textview-android-sample/Html List tag in Android TextView – Android samplePosted onOctober 29, 2011byadminHtml.fromHtml(String) does not support all HTML tags. For example < ul > and < li > are not supported.Try this source code as a subs 阅读全文
posted @ 2012-03-29 18:37 androidabc08 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.cnblogs.com/aimeng/archive/2012/03/17/2403298.html为什么要研究Android,是因为它够庞大,它够复杂,他激起了我作为一个程序员的内心的渴望,渴望理解这种复杂性。我研究的对象是作为手机开发平台的Android软件系统部分,而不是Dalvik虚拟机本身。 作为一个从其他平台装接过来的程序员,要从事Andoid平台系统开发,我的关于手机平台上积累的知识已经不能满足需要了,Android为我们带来了大量的新名词,Activity,Manifest,INTENT,Service,Binder,Dalvik虚拟机,Framew. 阅读全文
posted @ 2012-03-29 10:58 androidabc08 阅读(157) 评论(0) 推荐(0) 编辑
  2012年3月27日
摘要: 转自http://www.iteye.com/topic/1090312<!-- 最近接触WebView比较多,总结一下使用过程中遇到的一些问题和解决办法 -->1.WebView无法缓存(Cache) 如果页面的Header包含了以下字段就会导致无法缓存(具体可参考CacheManger.parseHeaders()方法):Cache-Control:no-store,no-cache Pragma:no-cache需要由服务器更改页面属性解决。2. WebView.getFavIcon()无法获取到页面图标 必须先执行以下操作(打开图标数据库):WebIconDatabase. 阅读全文
posted @ 2012-03-27 15:33 androidabc08 阅读(546) 评论(0) 推荐(0) 编辑