Guest User

Untitled

a guest
May 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public boolean onContextItemSelected(MenuItem item) {
  2.  
  3.  
  4. AdapterContextMenuInfo adaptercontextmenuinfo = (AdapterContextMenuInfo) item.getMenuInfo();
  5.  
  6. switch (item.getItemId())
  7. {
  8. case R.id.delete_item: //" how do I fetch the key of the item selected from firebase database"
  9.  
  10. return true;
  11.  
  12. default:
  13. return super.onContextItemSelected(item);
  14. }
  15.  
  16. '
  17. nhpccompaints-4cb01
  18. complaints
  19. -LDPrDAGIhPXlyYEmWSL
  20. comp_body:
  21. "1"
  22. comp_sub:
  23. "1"
  24. complaintid:
  25. "-LDPrDAGIhPXlyYEmWSL"
  26. empid:
  27. "1"
  28. -LDPrFFKAiJW9NnlOLYO
  29. -LDPrGzxMOM4Yas1ereU'
Add Comment
Please, Sign In to add comment