2013年11月30日

摘要: 不看API更新的坏处就是,人家明明都修改了,我却无知了。 按之前的写法,这样应该足够,按理不应该重绘,可事实证明,这是错误的。原因如下:"screenSize"The current available screen size has changed. This represents a change in the currently available size, relative to the current aspect ratio, so will change when the user switches between landscape and portrai 阅读全文
posted @ 2013-11-30 16:45 还有什么 阅读(393) 评论(0) 推荐(0) 编辑

2012年7月30日

摘要: public class PredicateLayout extends ViewGroup { private int line_height; public static final int DEFAULT_HORIZONTAL_SPACING = 5; public static final int DEFAULT_VERTICAL_SPACING = 5; private int horizontalSpacing; private int verticalSpacing; public PredicateLayout(Context context... 阅读全文
posted @ 2012-07-30 15:33 还有什么 阅读(738) 评论(2) 推荐(0) 编辑

2012年7月28日

摘要: 下载了个项目, 其中有需要mvn install jar包, 出现了以下错误:No Android SDK path could be found. You may configure it in the plugin configuration section in the pom file using <sdk><path>...</path></sdk> or <properties><android.sdk.path>...</android.sdk.path></properties> o 阅读全文
posted @ 2012-07-28 15:22 还有什么 阅读(2046) 评论(0) 推荐(0) 编辑

2011年11月1日

摘要: <activity android:name=".ShareLinkActivity" android:clearTaskOnLaunch="true"> <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType=&qu 阅读全文
posted @ 2011-11-01 19:05 还有什么 阅读(2908) 评论(0) 推荐(0) 编辑

2011年9月19日

摘要: 网络监听:AndroidManifest中定义网络监听的receiver:<receiver android:name=".receiver.ConnectionChangeReceiver" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> </intent-filter> </receiver> 定义网路监听的广播接受类:public class ConnectionChangeRe 阅读全文
posted @ 2011-09-19 10:33 还有什么 阅读(374) 评论(0) 推荐(0) 编辑

2011年8月31日

摘要: 如题 阅读全文
posted @ 2011-08-31 11:45 还有什么 阅读(575) 评论(0) 推荐(0) 编辑

2011年8月30日

摘要: 背景介绍:想在View上动态的setId,所以需要预先定义好id,以便使用,api上说,可以添加res/values/ids.xml的资源,用于定义公共的id,使用时直接R.id.id_name或android:id="id/id_name"即可。结果:[2011-08-30 21:06:13 - demo] W/ResourceType( 376): Bad resource table: header size 0xc or total size 0x186b6 is not on an integer boundary[2011-08-30 21:06:13 - de 阅读全文
posted @ 2011-08-30 21:13 还有什么 阅读(4794) 评论(0) 推荐(0) 编辑

2011年8月23日

摘要: 原因未知,设置了目标BActivity为singleTask后,在AActivity中调用BActivity,例如Intent intent = new Intent(this, BActivity.class);startActivityForResult(intent, 1);结果先会调用到 AActivity中的onActivityResult,而在BActivity设置setResult(Activity.RESULT_OL)后,AActivity的onActivityResult不会接受到通知。解决方案:设置BActivity为singleTop.Note that this met 阅读全文
posted @ 2011-08-23 12:20 还有什么 阅读(2555) 评论(0) 推荐(0) 编辑

2011年7月24日

摘要: 一个特2特2特2的事,花了两天的时间,其实坑不深,就是木有想到啊:notification.flags = Notification.DEFAULT_LIGHTS导致提醒的铃声就不断了,坑爹啊!!!天知道这样的代码是怎么出来的,其实Notification.DEFAULT_LIGHTS应该是用在notification.defaults上的,只是只是,这样的事件就发生了,坑! 阅读全文
posted @ 2011-07-24 17:13 还有什么 阅读(286) 评论(0) 推荐(0) 编辑

2011年7月22日

摘要: 需要访问网络的权限:<uses-permission android:name="android.permission.INTERNET"></uses-permission> 阅读全文
posted @ 2011-07-22 09:42 还有什么 阅读(405) 评论(0) 推荐(0) 编辑

导航