how to run an another class activity after toast message displayed?
mainListView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
String item = ((TextView)view).getText().toString();
Toast.makeText(getBaseContext(), item,
Toast.LENGTH_LONG).show();
tcpSocket.SendMessage(FramePacket.FramesendMessageCmd(item));
}
});
herer is my code. i want to start another activity after click on the
message item. i tried a lot. But not working. any one know help me please.
No comments:
Post a Comment