2011年7月15日
摘要: @Override public boolean onCreateOptionsMenu(Menu menu) { // TODO Auto-generated method stub MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.result_menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // TODO Auto-generated method stub switc. 阅读全文
posted @ 2011-07-15 11:43 榆钱沽酒 阅读(2181) 评论(0) 推荐(0) 编辑
摘要: private final static int LAUNCH_GALLERY = 3; //数字自定义 此处用来返回requestCode;在需要调用系统gallery的地方调用如下代码:Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Picture"),LAUNCH_GALLER 阅读全文
posted @ 2011-07-15 11:18 榆钱沽酒 阅读(1258) 评论(1) 推荐(0) 编辑