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);
}

posted on 2013-07-13 16:13  勤修  阅读(318)  评论(0编辑  收藏  举报

导航