我有一个活动A,它有套接字通信,我要打开活动B,只需单击一个来自活动A的按钮。public void onClick(View v) { intentsocClient = (SSLSocket) sslServerSocket.accept();
//once socket is connected send it back to activity(
假设我有一个名为ActivityA的活动和另一个名为ActivityB的活动。在每个活动中,我都有一个按钮,当它被点击时,它会打开另一个活动。当按钮被点击时,我想做以下工作:
check if there is an existing type of the target Activity in the activity back-stackor not, if there is, bring that Activity to the top and if not create new Intent an