title: Android extends Application and make an instance of it
body: <p>I'm tried following code:- </p>
  
  <pre><code>public class LocationApplication extends Application {
  
  public LocationInfo locationInfo;
  public int myInt;
  @Override
  public void onCreate() {
      super.onCreate();
     }
  }
  
  public int getInt(){  
      someMethod(context);
      return myInt;
     }
  }
  </code></pre>
  
  <p>Later in some other activity I have to get myInt that is in LocationApplication class. Note that I cannot make myInt static. So somehow I have to have an instance of LocationApplication class. So how do I make an instance of LocationApplication that is initialized by framework call chain earlier (means that onCreate() was called by framework).</p>
  
  <p>Any other suggestion to achieve this goal?  </p>