Android Intent之Action应用
Log.i("txrjsms", "whereDoYouJumpFrom:"+getIntent().getPackage()); 结果是null
Log.i("txrjsms", "whereDoYouJumpFrom:"+getIntent().getAction()); 结果是:
07-13 16:08:10.007: I/txrjsms(7043): whereDoYouJumpFrom:action.add.recipient
在跳转到ContactListActivity中执行操作
public void onClick(View v) {
Intent it = new Intent(mContext, ContactListActivity.class);
it.setAction(TxrjConstant.ACTION_ADD_RECIPIENT);
startActivityForResult(it, TxrjConstant.REQUEST_ADD_CONTACT);
}