title: cannot resolve context after importing android.content.Context; The Toast
body: <p>This is my code block and I attached an Image . I don't know why &quot;text&quot; and .show() looks red.</p>
  <p>Code Block:</p>
  <pre><code>private void setUpListViewListener() {
      listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
          @Override
          public boolean onItemLongClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
              Context context = getApplicationContext();
              //Context context = getApplicationContext();
  
  
              Toast.makeText(context, text: &quot;Item Removed&quot;, Toast.LENGTH_LONG).show();
  
              items.remove((i));
              itemsAdapter.notifyDataSetChanged();
              return true;
  
  
          }
      });
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/1cs3H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1cs3H.png" alt="enter image description here" /></a></p>