Page 276 - 3-3
P. 276

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;


              //DB2  클래스
              public class DB2 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 = "Communication_PushUp";


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


                  // 리스트뷰 생성
                  ListView list;


                  @Nullable
                  @Override
                  public  View   onCreateView(LayoutInflater   inflater,  @Nullable  ViewGroup   container,
            @Nullable Bundle savedInstanceState) {
                      //DB  레이아웃을 불러오기
                      View view = inflater.inflate(R.layout.fragment_db, container, false);


                      // 번들 생성


                                                        - 276 -
   271   272   273   274   275   276   277   278   279   280   281