title: How to access getIntent() from extends AppCompatActivity to extends Application
body: <p>So, my Activity A is :</p>
  
  <pre><code>public class imei extends AppCompatActivity {
  //variables    
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_imei);    
          ...    
          button.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View arg0) {
                  if(Long.parseLong(IMEI) == IMEI2){
                      IMEI .equals(IMEI2);
                      textView.setText("IMEI NUMBER : " + IMEI);
                      Bundle bundle = new Bundle();
                      bundle.putBoolean("key", true);
                      Intent intent = new Intent(imei.this, menu_utama.class);
                      intent.putExtras(bundle);
                      imei.this.startActivity(intent);
                  }else{}
  </code></pre>
  
  <p>now i want to pass value the Boolean value from bundle to Activity B :</p>
  
  <pre><code>public class MyApplication extends Application {
  private BeaconManager beaconManager;    
      //variables
  
      @Override
      public void onCreate() {
          super.onCreate();
  
          Intent intent = getIntent();
          Bundle bundle = intent.getExtras();
          final boolean success = bundle.getBoolean("key");    
          ..code
              if(success){
                  do something
              }else{do something
  </code></pre>
  
  <p>but the <code>getIntent()</code> is red, but when i change to <code>extends AppCompatActivity</code>, <code>getIntent()</code> correct. somehow it has to do with <code>onCreate(Bundle savedInstanceState)</code> and <code>extends Application</code> what should i do to fix this</p>