title: Android cannot resolve method getActivity()
body: <pre><code>    fileHippoWrapper = (LinearLayout) findViewById(R.id.filehippo_wrapper2);
      fileHippoWrapper.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              Toast.makeText(FinalChatActivity.this, "FileHippo", Toast.LENGTH_SHORT).show();
              AlAttachmentOptions.processLocationAction(getActivity(), null);
  
          }
      });
  </code></pre>
  
  <p>I'm not able  import function <code>processLocationAction</code> from another activity <code>AlAttachmentOptions</code> it says </p>
  
  <blockquote>
    <p>can't resolve method getActivity()</p>
  </blockquote>