01 2014 档案
Android调用默认浏览器打开指定url
摘要:2014.01.17前几天遇到一个需求:在SB Notes项目中需要点击一个Button调用默认的浏览器打开指定的url。我认为需要注意的几点:1、有无网络的情况2、对于pop up出来的Window各种分辨率下的布局3、倘若设备上未安装浏览器尝试方法一:Intent intent = new Intent();intent.setAction("android.intent.action.VIEW");Uri content_url = Uri.parse("https://saddleback.v2s.mobi/");intent.setData(c 阅读全文
posted @ 2014-01-17 10:25 jack.li 阅读(6736) 评论(1) 推荐(0)
配置最新的Android开发环境
摘要:2014.01.01重拾Android.Android SDK的变化还是很大的,我与之前不一样的是有了两年不到的EE开发经验。我相信这段经历对我以后的移动开发是有加分的。不管怎么样,首先得把最新的开发环境搭建起来,在此也做个记录,希望帮助到那些刚刚接触Android的朋友。第一步:去官网下载最新的SDK。http://developer.android.com/sdk/index.html选择下载32-bit或者64-bit版本的SDK。最新版的SDK大概在四百多兆。第二步双击SDK Manager.exe,下载开发所需要的package、案例等。第三步就比较简单了,直接打开eclipse文件 阅读全文
posted @ 2014-01-13 22:03 jack.li 阅读(146) 评论(0) 推荐(0)
Code Style Guidelines for Contributors Reading Notes
摘要:Reading Notes:1、You must handle every Exception in your code in some principled way.(if you are confident that actually ignoring the exception is appropriate then you may ignore it, but you must also comment why with a good reason)2、Don't Catch Generic Exception.3、we don't use finalizers.(th 阅读全文
posted @ 2014-01-07 15:01 jack.li 阅读(174) 评论(0) 推荐(0)