In my app I use parse database.
I want to invite people for a meeting ,but I want to remove invite button from current user.
I'm using if condition to do that but it is not working.
I'm querying a column in parse database, the column name is "sender"
Parse Database Table name is Meeting
below is my if condition . i want to get current user somehow to put inside if condition . if anyone knows help me ?
the function I expect is if current user is equal to sender , invite
button should be invisible
if( "sender" == thisPerson.getObjectId()) {
buttonLayout.setVisibility(View.INVISIBLE);
inviteMessage.setVisibility(View.INVISIBLE);
messageLayout.setVisibility(View.VISIBLE);
inviteMessage.setText("you can invite other people for meeting");
}else{
code.....
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…