Page 102 - 3-2
P. 102
btnOk.setBackgroundColor(Color.BLUE);
btnOk.setTextColor(Color.WHITE);
Log.d(" 여긴가", "owner_7-1, 도난 여부 화면으로 넘어가자");
String total_price= String.valueOf(owner_compare_all_price);
Log.d(" 여긴가", total_price);
Log.d(" 여긴가", "owner_7-2, 비교값 받아오기");
Toast.makeText(getApplicationContext(), " 현재 잔여물품 상
태.",Toast.LENGTH_LONG).show();
Intent intent = new Intent(getApplicationContext(),MainActivity_Owner_compare.class);
intent.putExtra(TAG_PRICE, total_price);
Log.d(" 여긴가", "owner_7-3, 비교화면으로 넘어감");
startActivity(intent);
}
// Delete button click event
public void onbtn_NONEClicked(View view) {
btnNone.setBackgroundColor(Color.RED);
btnNone.setTextColor(Color.WHITE);
new SigninActivity_compare_del_table4().execute("0");
Log.d(" 여긴가", "owner_8, 테이블 지움4 ");
Log.d(" 여긴가", "owner_8-1, 이전화면으로 돌아가자");
Intent intent = new Intent(getApplicationContext(),MainActivity_owner_list.class);
Toast.makeText(getApplicationContext(), " 잔여 상품을 다시 선택 해주세
요.",Toast.LENGTH_LONG).show();
Log.d(" 여긴가", "owner_8-2, 이전화면으로 돌아감");
startActivity(intent);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Response from Edit Product Activity
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// if result code 100
if (resultCode == 100) {
// if result code 100 is received
// means user edited/deleted product
// reload this screen again
Intent intent = getIntent();
finish();
startActivity(intent);
}
}
- 102 -