Why does click Event in Fragment takes back to the last activity without any such instruction given in the setOnClickListener in Android?
问题 This question is an extension to previous question over here. First Question So the logged in user and chatbuddy names are not returning null any more and data is being inserted in firebase as well. However the setOnClickListener action takes back to previous UsersList.java activity even though no such Intent given in sendImgView.setOnClickListener() function. UserList.java relevant code takes to ChatActivity as you can see and also i finish() it on click- usersList.setOnItemClickListener(new