what does getActivity() mean?
<p>what does <strong>getActivity()</strong> mean? I saw in somewhere, they wrote <strong>MainActivity.this.startActionMode(mActionModeCallback)</strong> instead of <strong>getActivity()</strong>. could someone explain what this two lines mean?</p>

<pre><code>  someView.setOnLongClickListener(new View.OnLongClickListener() {
        // Called when the user long-clicks on someView
        public boolean onLongClick(View view) {
            if (mActionMode != null) {
                return false;
            }

            // Start the CAB using the ActionMode.Callback defined above
            mActionMode = getActivity().startActionMode(mActionModeCallback);
            view.setSelected(true);
            return true;
        }
    });
</code></pre>
