我将应用程序 A 的信息发送到应用程序 B (用Java编写),其值为 Int ,但是我的字符串值:应用程序B中的用户名和密码始终为空。
代码申请A:
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
initLoginPopup();
String login = intent.getStringExtra("USER_NAME_FROM_MDO_SCHEDULE");
String password = intent.getStringExtra("USER_PASSWORD_FROM_MDO_SCHEDULE");
int jobType = intent.getIntExtra("JOB_TYPE_FROM_MDO_SCHEDULE", 0);
int jobId = intent.getIntExtra("JOB_ID_FROM_MDO_SCHEDULE", 0);
loginFromMdoSchedule(login, password, jobType, jobId).start();
}
E/EXTRAS: [JOB_ID_FROM_MDO_SCHEDULE=0]
[USER_NAME_FROM_MDO_SCHEDULE=null]
[USER_PASSWORD_FROM_MDO_SCHEDULE=null]
[JOB_TYPE_FROM_MDO_SCHEDULE=2]
E/END@@@@: Dumping Intent end
代码申请B:
color