Un-USB Brick HTC Desire

[不指定 2011/02/18 15:34 | by data ]
To Un-USB Brick HTC Desire:
1. Hold down the back button, and then turn on your Desire
2. Make sure the screen shows FASTBOOT. If it doesn’t, choose it from the options available
3. In command prompt go to the folder on your computer where you downloaded and extracted the Android SDK to
4. At the command prompt type ‘fastboot oem boot’
5. If you know that you don’t have access to the SD card when your phone loads up, also type the command ‘ fastboot oem enable qxdm 0’
6. The bit you need from the information displayed in the CID. Look for something like ‘INFOCID is O2___001’. In this case, my CID is ‘O2___001’
7. On your phone go to Settings>About phone>Software Information and note your Software Number. Mine was 1.21.405.1
8. Now turn off the phone and take the SD card out and put it in your computer
9. Go to http://ks33673.kimsufi.com/misc/ and put in the details from steps 6 & 7.
10. Download the file it creates
11. Get the flash image from http://www.shadowchild.nl/flash_image
12. Put both of these on the SD card
13. Put the SD Card back in your Desire and turn it on
14. Go to the Market and download a terminal emulator. I used ConnectBot
15. Run Connectbot. In the bottom left corner where it says ‘ssh’ click on the triangle. Choose ‘locall and put in anything for your nickname.
16. Now enter the following commands EXACTLY as they are shown below, pressing enter after each one
17. su
18. cat /sdcard/flash_image > /data/flash_image
19. cat /sdcard/mtd0.img > /data/mtd0.img
20. chmod 755 /data/flash_image
21. /data/flash_image misc /data/mtd0.img
22. Reboot your Desire, and it should all work again!

140个Google的面试题

[不指定 2010/12/14 12:33 | by data ]
来源:http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html(墙)


某猎头收集了140多个Google的面试题,都张到他的Blog中了,主要是下面这些职位的,因为被墙,且无任何敏感信息,所以,我原文搬过来了。
Product Marketing Manager
Product Manager
Software Engineer
Software Engineer in Test
Quantitative Compensation Analyst
Engineering Manager
AdWords Associate
这篇Blog例举了Google用来面试下面这几个职位的面试题。很多不是很容易回答,不过都比较经典与变态,是Google,Microsoft,Amazon之类的公司的风格。对于本文,我没有翻译,因为我相信,英文问题是最好的。不过对于有些问题,我做了一些注释,不一定对,但希望对你有帮助启发。对于一些问题,如果你百思不得其解,可以Google一下,StackOverflow或是Wikipedia上可能会给你非常全面的答案。

Android 程序权限列表 permission

[不指定 2010/12/10 15:06 | by data ]
Android程序在使用很多功能时都必须先在Manifest.xml文件中声明需要的权限,否则无法运行。以下是网上找的android权限列表


android.permission.ACCESS_CHECKIN_PROPERTIES
允许读写访问”properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded)

android.permission.ACCESS_COARSE_LOCATION
允许一个程序访问CellID或WiFi热点来获取粗略的位置(Allows an application to access coarse (e.g., Cell-ID, WiFi) location)

android.permission.ACCESS_FINE_LOCATION
允许一个程序访问精良位置(如GPS) (Allows an application to access fine (e.g., GPS) location)
一:不同的layout
Android手机屏幕大小不一,有480x320, 640x360, 800x480.怎样才能让App自动适应不同的屏幕呢?
   其实很简单,只需要在res目录下创建不同的layout文件夹,比如layout-640x360,layout-800x480,所有的layout文件在编译之后都会写入R.java里,而系统会根据屏幕的大小自己选择合适的layout进行使用。

二:hdpi、mdpi、ldpi

在之前的版本中,只有一个drawable,而2.1版本中有drawable-mdpi、drawable-ldpi、drawable-hdpi三个,这三个主要是为了支持多分辨率。
  drawable- hdpi、drawable- mdpi、drawable-ldpi的区别:
  (1)drawable-hdpi里面存放高分辨率的图片,如WVGA (480x800),FWVGA (480x854)
  (2)drawable-mdpi里面存放中等分辨率的图片,如HVGA (320x480)
  (3)drawable-ldpi里面存放低分辨率的图片,如QVGA (240x320)
  系统会根据机器的分辨率来分别到这几个文件夹里面去找对应的图片。
  在开发程序时为了兼容不同平台不同屏幕,建议各自文件夹根据需求均存放不同版本图片。

德国科学家说

[不指定 2010/11/10 21:27 | by data ]
点击在新窗口中浏览此图片
分页: 1/11 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]