Page 113 - 3-2
P. 113

Log.d(" 여긴가", "owner_2-77777_   설마 너 jsonexception  이니.....?");
                            e.printStackTrace();
                        }


                        return null;
                    }


                    /**
                     * After completing background task Dismiss the progress dialog
                     **/
                    protected void onPostExecute(String file_url) {
                        // dismiss the dialog after getting all products
                     //  pDialog.dismiss();
                        // updating UI from Background Thread
                        runOnUiThread(new Runnable() {
                            public void run() {
                                /**
                                 * Updating parsed JSON data into ListView
                                 * */
                                ListAdapter adapter = new SimpleAdapter(
                                        MainActivity_owner_list.this, productsList2,
                                        R.layout.list_item2, new String[]{TAG_CODE,
                                        TAG_NAME, TAG_PRICE},
                                        new int[]{R.id.txtcode2, R.id.txtname2, R.id.txtprice2});
                                Log.d(" 여긴가","owner_2-8,  출력함");
                                // updating listview
                                setListAdapter(adapter);




                                //  Intent go = new Intent(getApplicationContext(),MainActivity_tag.class);
                                //  startActivity(go);
                            }
                        });
                    }
                }
            }
            *******************************MainActivity_tag***********************package
            kr.icehs.intec.emart;


            import android.app.ListActivity;
            import android.app.ProgressDialog;
            import android.content.Intent;
            import android.os.AsyncTask;
            import android.os.Bundle;
            import android.util.Log;


                                                         - 113 -
   108   109   110   111   112   113   114   115   116   117   118