title: Getting Intent Extras from Activity before onCreate method
body: <p>Is there any way to get intent extras inside <code>attachBaseContext()</code> method?</p>
  
  <p>The Activity i am using is inside the framework project. I need to set Activity's language with <code>attachBaseContext()</code> method like:</p>
  
  <pre><code>@Override
  protected void attachBaseContext(Context newBase) {
     super.attachBaseContext(LanguageContextWrapper.wrap(newBase, "en"));
  }
  </code></pre>
  
  <p>I am sending language code string to Activity with <code>intent.putExtra()</code>. When i try to get extras inside <code>attachBaseContext()</code>, it throws NullPointerException error. How can it be done? Thanks.</p>