摘要:
take big picture ,select picture from gallery and crop picture.1. 照相获得大图片:照相时,把图片保存到文件中, 可以得到大图片(分辨率很高的图片), 具体方法:Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); mImageCaptureUri = Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "tmp_avatar_" + S... 阅读全文
阅读排行榜
Gson 使用简介
2012-09-12 15:23 by java20130722, 220 阅读, 收藏,
摘要:
这个网页通过正常的手段是访问不到的, 为了大家能够方便的学习Gson。 因此将原文应用到此。OverviewGson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson is an open-source project hosted athttp://code.google.com/p/google-gso 阅读全文
ANSI编码字符转化为UNICODE编码字符
2012-04-13 11:01 by java20130722, 220 阅读, 收藏,
摘要:
WCHAR* S2W(char* ansi) { int i; WCHAR* unicode; unicode = (WCHAR*) malloc ((strlen(ansi)+2)*sizeof(WCHAR)); for (i = 0; i<(signed)strlen(ansi)+1; i++) unicode[i] = ansi[i]; unicode[i] = 0; return unicode; } 记得最后要释放unicode指针。 阅读全文
python 学习笔记一
2013-06-25 10:28 by java20130722, 219 阅读, 收藏,
摘要:
初级阶段 (简单实践)tmp_storage = ""welcome = "hello!"tmp_storage = welcomeprint tmp_storage结果:hello!-------------------------------------------------radius = 10pi = 3.14area = pi*radius**2print "the area is", area结果:the area is 314.0--------------------------------------------- 阅读全文
自定义Dialog之Progress(二)
2013-05-28 19:45 by java20130722, 219 阅读, 收藏,
摘要:
自定义Dialog之Progress(二)系统的Dialog一般是适合UI设计的需求,那么就需要自定义的ProgressDialog.第一想法就是能在应用级别全局改变应用的ProgressDialog的样式。(已经试过,没有成功)做法是:@style/theme.customer_progress_dialog@style/theme.customer_progress_dialog 是自定义的theme如果有成功的,希望能分享下,谢谢。第二种做法是自定义theme, 然后定义一个ProgressDialog:CustomProgressDialog. 在应用里面就用这个.自定义theme:@ 阅读全文
浙公网安备 33010602011771号