Page 297 - 3-3
P. 297

import android.support.annotation.Nullable;
                import android.support.v4.app.Fragment;
                import android.view.LayoutInflater;
                import android.view.View;
                import android.view.ViewGroup;
                import android.widget.ListAdapter;
                import android.widget.ListView;
                import android.widget.SimpleAdapter;


                import com.helloworld.smartschool.R;


                import org.json.JSONArray;
                import org.json.JSONException;
                import org.json.JSONObject;


                import java.io.BufferedReader;
                import java.io.InputStreamReader;
                import java.net.HttpURLConnection;
                import java.net.URL;
                import java.util.ArrayList;
                import java.util.HashMap;


                //DB1  클래스
                public class DB7 extends Fragment {


                    //Context  생성
                    Context ct;


                    //DB  변수 생성
                    String myJSON;
                    private static final String TAG_ID = "StudentID";
                    private static final String TAG_NAME = "Name";
                    private static final String TAG_REC = "Record";
                    private static final String TAG_JSON = "Control_Run50M";


                    //JSON  변수 생성
                    JSONArray peoples = null;
                    ArrayList<HashMap<String, String>> personList;


                    // 리스트뷰 생성
                    ListView list;


                    @Nullable
                    @Override
                    public  View   onCreateView(LayoutInflater   inflater,  @Nullable  ViewGroup    container,


                                                          - 297 -
   292   293   294   295   296   297   298   299   300   301   302