title: how to call An Activity class from a noraml java class in Android
body: <p>I have one noraml java class say ReceivedChat.java in the constructor of this class i want to call an Activity of Android.</p>
  
  <pre><code>public class ReceivedChat {
      String message;
      String from;
      Context context;
  
      ReceivedChat(String message, String from) {
          this.message = message;
          this.from = from;
  
          Bundle b = new Bundle();
          b.putString("message", this.message);
          b.putString("from", this.from);
          b.putString("fromChat", "true");
  
          Intent i = new Intent(context.getApplicationContext(), XmppChatActivity.class);
          i.putExtras(b);
          context.getApplicationContext().startActivity(i);
      }
  }
  </code></pre>
  
  <p>My Activity class is <code>XmppChatActivity</code>.</p>
  
  <p>This program is not working. it is not calling the onCreate of my <code>XmppChatActivity</code> class
  Any help will be thankfull to me.</p>