应用内跳转: 隐式跳转主要用于打开系统界面这里不做介绍
1.最简单的:
//MainActivity :当前activity
Intent intent = new Intent(MainActivity.this,SdpActivity.class);
//"15710833644" 账号 string类型;
intent.putExtra("phoneNo","15710833333");
startActivity(intent);
或者
Intent intent = new Intent();
intent.setClass(MainSdpActivity.this, SdpActivity.class);
intent.putExtra("phoneNo","15710833333");
startActivity(intent);
SdpActivity中接收参数
phoneNo = getIntent().getStringExtra("phoneNo");
2.可用与应用间的intent 跳转
Intent intent1 = new Intent();
intent1.setComponent(new ComponentName("com.czj.componentnamedemo",
"com.czj.componentnamedemo.SecondActivity"));
startActivity(intent1);
3.URL 跳转