03 2013 档案

摘要:Type in terminal: 1. sudo gedit /etc/default/grub2. Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"3. Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"4. Save the file and close the file.5. Finally, in terminal: sudo update-grub 阅读全文
posted @ 2013-03-25 20:05 qiangzhu 阅读(857) 评论(0) 推荐(0)
摘要:1. How to get code1.0 sign-in gerrit (only for the very first time)login with your LDAP account on http://216.224.176.142:8080/setup Preferred email, you need go to your email box to click the link ( if you don't get the email in minutes, please check your spam box)upload your ~/.ssh/id_rsa.pub 阅读全文
posted @ 2013-03-12 09:02 qiangzhu 阅读(1665) 评论(0) 推荐(0)
摘要:Paddingis the space inside the border, between the border and the actual view's content. Note that padding goes completely around the content: there is padding on the top, bottom, right and left sides (which can be independent).Marginsare the spaces outside the border, between the border and the 阅读全文
posted @ 2013-03-10 16:23 qiangzhu 阅读(2560) 评论(0) 推荐(0)
摘要:分辨率适配的出发点:a.根据不同的屏幕尺寸提供UI布局(layout)。 b.根据不同屏幕像素密度(单位英寸的像素值)提供界面元素的图片。1.基本概念Screen size-屏幕尺寸(Actual physical size, measured as the screen's diagonal.For simplicity, Android groups all actual screen sizes into four generalized sizes: small, normal, large, and extra large.)手机实际的物理尺寸,指屏幕对角线的长度,比如2.8 阅读全文
posted @ 2013-03-08 19:59 qiangzhu 阅读(2303) 评论(0) 推荐(0)
摘要:比图android旋转屏幕,又竖屏到横屏,activity的生命周期onPause->onStop->onDestroy->onCreate->onStart->OnResumeAPI level 13 or higher,you should set this config instead:android:configChanges="orientation|screenSize"然后旋转屏幕,只会调用onConfigurationChanged,不会创建新activity. 阅读全文
posted @ 2013-03-08 16:59 qiangzhu 阅读(956) 评论(0) 推荐(0)
摘要:public static boolean isMediaScannerScanning(Context context) { boolean result = false; Cursor cursor = query(context, MediaStore.getMediaScannerUri(), new String [] { MediaStore.MEDIA_SCANNER_VOLUME }, null, null, null); if (cursor != null) { if (cursor.getCount() == 1) { cursor.moveToFirst(); re.. 阅读全文
posted @ 2013-03-06 14:32 qiangzhu 阅读(434) 评论(0) 推荐(0)