
android
yylyell
这个作者很懒,什么都没留下…
展开
-
添加控件,并在代码中获取控件
1、在layout中的xml文件添加控件原创 2014-05-11 16:38:23 · 464 阅读 · 0 评论 -
通过Intent传递参数
通过Intent传递基本数据类型或者可序列化Intent intent=new Intent(Main.this,OtherActivity.class);intent.putExtra("key", value);原创 2014-05-11 17:03:38 · 858 阅读 · 0 评论 -
android
通过Application传递参数:原创 2014-05-11 16:34:09 · 343 阅读 · 0 评论 -
剪切板使用
ClipboardManager cmb = (ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);cmb.setText("001");//复制cmb.getText();//粘贴原创 2014-05-11 17:00:00 · 337 阅读 · 0 评论 -
通过 Intent传递数据,并返回结果
Intent intent=getIntent(); String value=intent.getStringExtra("key"); startActivity(intent); int request_Code=200;//定义返回结果码原创 2014-05-11 17:25:42 · 430 阅读 · 0 评论