title: Is there any method to get package context in android studio ....?
body: <pre class="lang-java prettyprint-override"><code>private void passcodeIntent(Context context, String pack) {
      Intent intent = new Intent(context, auth.class);
      pack = getApplicationContext();
      Intent intent = new Intent(pack, auth.class);
      Toast.makeText(context, &quot;long clicked&quot;, Toast.LENGTH_LONG).show();
      check = false;
  }
  </code></pre>
  <p>My intent is not working. I created a separate method for the intent but <code>getApplicationContext</code> is not working.</p>