Page 101 - 3-2
P. 101

int owner_compare_price=0;
                Button btnOk;
                Button btnNone;


                // Creating JSON Parser object
                JSONParser jParser = new JSONParser();


                ArrayList<HashMap<String, String>> productsList3;


                // url to get all products list
                private static String url_all_products = "http://192.168.0.85/owner_all_products_table4.php";


                // JSON Node names
                private static final String TAG_SUCCESS = "success";
                private static final String TAG_PRODUCTS = "products";
                private static final String TAG_CODE = "code";
                private static final String TAG_NAME = "name";
                private static final String TAG_NUM = "num";
                private static final String TAG_PRICE = "price";


                // products JSONArray
                JSONArray products = null;


                @Override
                public void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.activity_owner_compare_yet); // 화면


                    btnOk = (Button) findViewById(R.id.btnOk);
                    btnNone = (Button) findViewById(R.id.btnNone);


                    Log.d(" 여긴가", "owner_5-3,compare_yet    화면 출력하자");


                    // Hashmap for ListView
                    productsList3 = new ArrayList<HashMap<String, String>>();


                    // Loading products in Background Thread
                    Log.d(" 여긴가", "owner_5-4,list 출력하러 떠남 테이블 출력해야함,   4          ");
                    new LoadAllProducts().execute();        // Get listview
                    Log.d(" 여긴가", "owner_6,   출력 끝");


                }
            /////////////////////////////////////////////////////////////////////////////////////////  모두 선택했으면 값 가지고 비
            교하기
                public void onbtn_OKClicked(View view) {


                                                         - 101 -
   96   97   98   99   100   101   102   103   104   105   106