title: Inflate a view in a background thread
body: <p>I have a very simple question:  </p>
  
  <p>Is or is it not possible to <strong>inflate</strong> a view (not add it to layout) in a background thread (ex: in the <code>doInBackground</code> of an <code>AsyncTask</code>)?  </p>
  
  <p>I know that it is possible, because I have implemented most Activities in my application this way and never had a problem, until I had this problem on a Galaxy S:  <a href="https://stackoverflow.com/questions/6682730/android-android-view-inflateexception-binary-xml-file-line-13-error-inflating/">Android: android.view.InflateException: Binary XML file line #13: Error inflating class &lt;unknown&gt; in SAMSUNG Galaxy S</a>   </p>
  
  <p>I've been told that I <em>should</em> not inflate <code>Views</code> in background threads, but what are the specific reasons and why does my aproach work in most devices but not in Galaxy S?</p>