このクラスのコンストラクターにReceivedChat.javaというnoramljavaクラスが1つあり、Androidのアクティビティを呼び出します。
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);
}
}
私のアクティビティクラスはXmppChatActivity
です。
このプログラムは機能していません。私のクラスのonCreateを呼び出していXmppChatActivity
ません。どんな助けでも私に感謝します。