title: How to use RunOnUIThread() in Xamarin Android
body: <p>I would like to run this statement after getting result into OStateUserId object.</p>
  
  
  
  <p><code>details.Text = OStateUserID.name + "\n" + OStateUserID.population);</code></p>
  
  <pre class="lang-cs prettyprint-override"><code>bStateuserID.Click +=  async delegate 
  {
      details.Text=" ";
      Guid x = new Guid("33F8A8D5-0DF2-47A0-9C79-002351A95F88");
      state OStateUserID =(state) await obj.GetStateByUserId(x.ToString());
      details.Text = OStateUserID.name + "\n" + OStateUserID.population);
  };
  </code></pre>
  
  <p><code>GetStateByUserId()</code> method returns an object of <code>class State</code>.</p>
  
  <p>It runs asynchronously. After completing operation, I'd like to assign the <strong>name</strong> and <strong>population</strong> to the TextView details.</p>
  
  <p>How can i use <code>RunOnUIThread()</code> in this case?</p>