I use the Google Appinvite Api in my android app to send an invitation to friends.
I can send a request and its working fine. But I want to track friends to whom I send a request through my application.
This is the code where I get the invitation id.
But how can I get the name or address of the sender from the invitation identifier.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQUEST_INVITE) { if (resultCode == RESULT_OK) { String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data); Log.d("TAG", getString(R.string.sent_invitations_fmt, ids.length)); } else { showMessage(getString(R.string.send_failed)); } } }
String [] ids is the array of invitation id sent by me
source share