Page 92 - 3-2
P. 92
// Progress Dialog
private ProgressDialog pDialog;
// url to delete product
// JSON parser class
JSONParser jsonParser = new JSONParser();
// JSON Node names
private static final String TAG_CODE = "code";
private static final String TAG_SUCCESS = "success";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_delete);
ActionBar actionBar = getSupportActionBar();
actionBar.setBackgroundDrawable(new ColorDrawable(0xFFFC961E));
// save button
btnSafe = (Button) findViewById(R.id.btnSafe);
btnDelete = (Button) findViewById(R.id.btnDelete);
txtdelete = (TextView) findViewById(R.id.txtdelete);
// getting product details from intent
Intent i = getIntent();
// getting product id (pid) from intent
code = i.getStringExtra(TAG_CODE);
// new SigninActivity_delete(this,status).execute(delete_code);
Log.d(" 여긴가", "8.4_delete 로 이동했다 코드받음");
Log.d(" 여긴가", code);
}
// Delete button click event
public void onbtn_btnDeleteClicked(View view) {
new DeleteProduct(this,status).execute(code);
Log.d(" 여긴가", "8.22222_delete 로 이동했다 ㄹㅇ 지운다");
Log.d(" 여긴가", code);
btnDelete.setBackgroundColor(Color.BLUE);
btnDelete.setTextColor(Color.WHITE);
}
- 92 -