摘要: 最近遇到的一个问题,现在记录下,未做深入研究,有遇到过的可以一起探讨,待更 一个简单的功能实现Tab页切换 protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource 阅读全文
posted @ 2020-02-21 16:27 树杈上的猴子 阅读(155) 评论(0) 推荐(0) 编辑
摘要: if you are already calling something that uses await/async: 阅读全文
posted @ 2018-08-15 14:23 树杈上的猴子 阅读(592) 评论(0) 推荐(0) 编辑
摘要: To prevent dialog box from getting dismissed on back key pressed use this And to prevent dialog box from getting dismissed on outside touch use this 阅读全文
posted @ 2018-08-15 10:13 树杈上的猴子 阅读(113) 评论(0) 推荐(0) 编辑
摘要: onBeginEdit:function(index ,data){ var ed = $(this).datagrid('getEditor', { index: index, field: 'Number' }); $(ed.target).next().children().focus(); //api... 阅读全文
posted @ 2018-04-23 19:44 树杈上的猴子 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Open the Command Prompt (not as administrator)Navigate to the folder where IIS Express is installed on your machine.In the command line spin up a IISE... 阅读全文
posted @ 2014-11-24 12:32 树杈上的猴子 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 2008的版本驱动和2000的有点不同,之前的都是com.microsoft.jdbc.sqlserver.SQLServerDriver可是2008 去是com.microsoft.sqlserver.jdbc.SQLServerDriver 阅读全文
posted @ 2014-03-31 20:41 树杈上的猴子 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 第一种:之前在网上看来一些,很多不是我要的可以启动另外一个应用程序的主Activity.//这些代码是启动另外的一个应用程序的主Activity,当然也可以启动任意一个Activity ComponentName componetName = new ComponentName( //这个是另外一个应用程序的包名 "com.poynt.weibo", //这个参数是要启动的Activity "com.poynt.weibo.ui.IndexActivity"); try { Intent intent = new Intent()... 阅读全文
posted @ 2014-03-20 15:00 树杈上的猴子 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: 0. 基础知识:可以通过android.content.Context的方法getPackageManager()得到一个PackageManager实例。PackageManager有一个方法:PackageInfogetPackageArchiveInfo(String archiveFilePath, int flags);其中参数一:archiveFilePath。就是指一个APK文件绝对路径。请注意它的返回值。是个PackageInfo。它包含Pakcage所有信息,可以认为,这些信息都是从AndroidManifest.xml中收集而来。1. 得到APK中Activity信息:Pa 阅读全文
posted @ 2014-03-20 11:38 树杈上的猴子 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 使用dom4j解析XML时,要快速获取某个节点的数据,使用XPath是个不错的方法,dom4j的快速手册里也建议使用这种方式,标题都写的这么阔气:Powerful Navigation with XPath。方法是使用Document的selectNodes(String XPath)方法,代码写法:List l = doc.selectNodes("//COLS/COL1");执行时却抛出以下异常:Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenExce 阅读全文
posted @ 2014-03-01 16:06 树杈上的猴子 阅读(239) 评论(0) 推荐(0) 编辑
摘要: MyEclipse:修改MyEclipse开发工具中的页面模板(JSP和HTML等)1.用MyEclipse工具开发Web项目,有一个很普遍的问题,就是在新建一个页面文件时,需要修改pageEncoding值,页面中默认的pageEncoding值一般是ISO-8859-1。2.如果Web项目需要支持中文,那就必须把那个ISO-8859-1给改掉,换成以下几种:UTF-8、GB2312或GBK。3.UTF-8在中文方面通用性好,如果要将页面的pageEncoding值换成UTF-8,比较简单,找到 MyEclipse开发工具的Window|Preferences-MyEclipse Enter 阅读全文
posted @ 2014-02-27 12:17 树杈上的猴子 阅读(409) 评论(0) 推荐(0) 编辑