Advertisement
Guest User

Untitled

a guest
Dec 10th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. chatTextView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  2.  
  3. @Override
  4. public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
  5. Intent intent = new Intent(ChatWindow.this, MessageDetails.class);
  6. Bundle b = new Bundle();
  7. b.putLong("ID", arg3);
  8. b.putString("MESSAGE", textStorage.get(position));
  9. intent.putExtras(b);
  10. startActivityForResult(intent, OPEN_FRAGMENT);
  11. finish();
  12. }
  13.  
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement