In android when I define a menuitem's onclick handler in xml
<item
android:id="@+id/context_menu"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/word_context_menu_title"
android:onClick="deleteItem"/>
And in the corresponding activity I define a function deleteItem with the below signature.
public boolean deleteItem(MenuItem item){
logger.info("delete button clicked");
return false;
}
My question is what does the return value signify? In which case should I return true and in which case should I return false?