Android callback from activity to fragment
<p>I have "onOptionsItemSelected" method overrided in main activity, i want to notify my list when i tap on action bar items to change language on list. how do i make callback from MainActivity.java to my ListFragment.</p>

<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();

    if (id == R.id.action_exit) {
        finish();

        return true;
    } else if (id == R.id.action_en) {
        changeLanguageToEn();

        return true;
    } else if (id == R.id.action_ge) {
        changeLanguageToGe();

        return true;
    }

    return super.onOptionsItemSelected(item);
}
</code></pre>