摘要:
int i = Integer.parseIn(String str);int i = Integer.valueOf().intValue();注:Integer.parseIn 和 Integer.valueOf 不同,前者生成的是整型,而后者是一个对象,所以要通过intValue()来获得对象的值;字串转成 Double, Float, Long 的方法大同小异.2) 整型转化为字符串:String str = String.valueOf(int i);String str = Integer.toString(int i);String str = “” + i ;注: Double 阅读全文
posted @ 2013-01-16 16:40
Ada zheng
阅读(931)
评论(0)
推荐(0)
摘要:
启动activity源码:(记得要加上Intent.FLAG_ACTIVITY_NEW_TASK)Intent intent = new Intent(); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setClass(getApplicationContext(),FileBrowserActivity.class); startActivity(intent); 启动alertDialog源码: AlertDialog.Builder builder = new AlertDialog.Builder(this); bui. 阅读全文
posted @ 2013-01-16 14:39
Ada zheng
阅读(8988)
评论(1)
推荐(0)

浙公网安备 33010602011771号