activity到fragmentactivity
Intent intent = new Intent(dengluActivity.this, FragmentActivity.class); intent.putExtra("Name", Temp_name); startActivity(intent); overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
--------------------------------------------------------------------------
fragmentactivity到其他fragmentBundle bundle = this.getIntent().getExtras(); /*获取Bundle中的数据,注意类型和key*/ name = bundle.getString("Name");
Bundle args = new Bundle(); args.putString("param", name); fragmentshouye.setArguments(args); fragmentTransaction = this.getFragmentManager().beginTransaction(); fragmentTransaction.replace(R.id.framexml, fragmentshouye); fragmentTransaction.commit();-------------------------------------------------------------------------------------------------------------------------------------
String mParam1 = getArguments().getString("param");