package com.example.androidnewdemo.activitiy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.example.androidnewdemo.R;
import com.example.androidnewdemo.service.NetGetService;
import com.example.androidnewdemo.service.NetPostService;
public class MainActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
new NetPing().execute();
}
public String Ping(String str) {
String resault = "";
Process p;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余2页未读,立即下载