title: how use getContentResolver in a class without activity?
body: <p>my class looks like this:</p>
  
  <pre><code>public class sendInformation{
  
    public void test() throws Exception {
      Uri uri = SuspiciousActivityTable.CONTENT_URI;
      getContentResolver().update(uri, values2, where,new String[]{"Null"});
      }
    }
  }
  </code></pre>
  
  <p>but it say  <code>getContentResolver()</code> doesn't exist, I know I need a Context or Activity to make this work but how do I get the correct Context here?</p>