2015年5月7日

android 4.1.x webview Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1) crash

摘要: android webview crash 阅读全文

posted @ 2015-05-07 10:19 pawns 阅读(372) 评论(0) 推荐(0) 编辑

2013年2月20日

转:自定义ListView FastScroller滑块图片

摘要: // Are there enough pages to require fast scroll? Recompute only if total count changes if (mItemCount != totalItemCount && visibleItemCount > 0) { mItemCount = totalItemCount; mLongList = mItemCount / visibleItemCount >= MIN_PAGES; }使用ListView Fast... 阅读全文

posted @ 2013-02-20 10:30 pawns 阅读(320) 评论(0) 推荐(0) 编辑

2013年1月22日

关于android InstrumentationTestRunner

摘要: 做自动化测试,之前使用的TestRunner是pl.polidea.instrumentation.PolideaInstrumentationTestRunner.在manifest文件里的instrumentation标签下指定testrunner,格式为:<instrumentation android:name="pl.polidea.instrumentation.PolideaInstrumentationTestRunner" android:targetPackage="" /><!--targetPackage为被测工 阅读全文

posted @ 2013-01-22 10:02 pawns 阅读(525) 评论(0) 推荐(0) 编辑

2012年12月7日

android singleTask问题

摘要: singleTask模式下,处在同一个task的Activity位于一个栈,当跳转Activity时,如果要跳转的目标Activity已经在栈中,则会把栈中在该Activity之上的所有Activity元素destroy掉,使得该Activity位于栈顶,进入该Activity不会走onCreate方法。 阅读全文

posted @ 2012-12-07 15:04 pawns 阅读(1709) 评论(0) 推荐(0) 编辑

2012年10月18日

解决android开发中eclipse不能自动提示

摘要: Eclipse中window->Preferences->Java->Editor->Content Assist->Advanced->顶部的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把”Java Proposals“ 选项打上勾。 阅读全文

posted @ 2012-10-18 13:27 pawns 阅读(5657) 评论(0) 推荐(0) 编辑

2012年9月5日

winform使用post方式启动IE传递数据

摘要: public static void OpenNewIe(string url, string postData) { var ie = new InternetExplorer(); object vPost, vHeaders, vFlags, vTargetFrame; vPost = null; vFlags = null; vTargetFrame = null; vHeaders = "Content-Type: application/... 阅读全文

posted @ 2012-09-05 16:49 pawns 阅读(1301) 评论(2) 推荐(0) 编辑

2012年9月4日

winform listbox 显示tooltip(防闪烁)

摘要: private void listBox1_MouseMove(object sender, MouseEventArgs e) { int index = listBox1.IndexFromPoint(e.Location); // Check if the index is valid. if (index != -1 && index < listBox1.Items.Count) { // Check if the ToolTip's text isn'... 阅读全文

posted @ 2012-09-04 10:11 pawns 阅读(4277) 评论(1) 推荐(0) 编辑

2012年8月1日

android代码混淆

摘要: 对于2.2的sdk,要进行代码混淆,先从高版本(2.3)以上工程中将 proguard.cfg 文件拷到当前工程目录下,然后在 default.properties 文件中增加proguard.config=proguard.cfg配置。这样打出apk后如果使用反编译工具查看源码,就是已混淆过的了。 阅读全文

posted @ 2012-08-01 19:17 pawns 阅读(184) 评论(0) 推荐(0) 编辑

2012年6月7日

android在activity中锁屏解锁后重走OnCreate的问题的解决办法

摘要: 在项目中,遇到了需要在某个activity中根据不同的情况下设置为横屏或竖屏,而且不因重力感应改变方向。因此刚开始我没有在manifest里指定方向,而是在代码中强制设置屏幕的方向setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);//当前activity强制设置为横屏或者是setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);//当前activity强制设置为竖屏这样设置后可以根据不同的情况调整屏幕的方向,但如果进行锁屏,解锁后通过跟 阅读全文

posted @ 2012-06-07 10:37 pawns 阅读(7615) 评论(0) 推荐(0) 编辑

2012年6月4日

android对添加低版本工程出错的解决办法

摘要: eclipse添加低版本android工程时,会遇到报“unable to resolve target “android-X””的问题。首先,将project.properties文件里的target=android-X,及Manifest里的<uses-sdk android:minSdkVersion="X" />将X改为当前使用的apilevel,具体数值查看可点击window->avdmanager来查看。完成第一步后,可以尝试编译,如果编译仍不通过,或者报类似Android requires compiler compliance level 阅读全文

posted @ 2012-06-04 21:31 pawns 阅读(310) 评论(0) 推荐(0) 编辑

导航