title: Creating an object of Android Activity class
body: <p>I have a class which extends <code>Activity</code> and I am trying to create an object of that class in a normal java class but it's throwing me an exception :</p>
  
  <p><code>Can't create handler inside thread that has not called looper.prepare</code></p>
  
  <p>What am I doing wrong? </p>
  
  <p>Thanks in advance.</p>