摘要: a、Activity1发送: Intent intent = new Intent();intent.setClass(activity1.this, activity2.class);//描述起点和目标Bundle bundle = new Bundle();//创建Bundle对象bundle... 阅读全文
posted @ 2015-10-09 12:22 龟窝 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1 Intent intent = new Intent(Intent.ACTION_VIEW);2 intent.setData(Uri.parse("geo:20.000,50.000"));3 startActivity(... 阅读全文
posted @ 2015-10-09 11:04 龟窝 阅读(180) 评论(0) 推荐(0) 编辑
摘要: java中: 1 public class MainActivity extends Activity implements OnCheckedChangeListener{ 2 3 private Switch aSwitch; 4 5 @Override 6 prot... 阅读全文
posted @ 2015-10-09 10:14 龟窝 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 1 InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);//这两行是弹出软键盘2 imm.showSoftInput(textView,... 阅读全文
posted @ 2015-10-09 10:09 龟窝 阅读(230) 评论(0) 推荐(0) 编辑