This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cool_delete.socket_connect_pull_push; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.net.Uri; | |
import android.os.Handler; | |
import android.os.Message; | |
import android.util.Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
它是网络通信过程中端点的抽象表示,包含进行网络通信必须的五种信息:连接使用的协议, | |
本地主机的IP地址,本地进程的协议端口,远地主机的IP地址,远地进程的协议端口。 | |
套接字之间的连接过程分为三个步骤:服务器监听,客户端请求,连接确认。 | |
1.HTTP请求格式: | |
<request line> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
它是网络通信过程中端点的抽象表示,包含进行网络通信必须的五种信息:连接使用的协议, | |
本地主机的IP地址,本地进程的协议端口,远地主机的IP地址,远地进程的协议端口。 | |
套接字之间的连接过程分为三个步骤:服务器监听,客户端请求,连接确认。 | |
1.HTTP请求格式: | |
<request line> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void copy(CharSequence text,Context mContex) { | |
ClipboardManager cib = (ClipboardManager) mContex.getSystemService(Context.CLIPBOARD_SERVICE); | |
cib.setPrimaryClip(ClipData.newPlainText(null, text)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cool_delete.socket_connect_pull_push; | |
import android.app.Notification; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.IBinder; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cool_delete.socket_connect_pull_push; | |
import android.app.Notification; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.IBinder; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |