Page 87 - 3-2
P. 87
Log.d(" 여긴가", "8.1_delete 로 이동하자");
Log.d(" 여긴가", "8.2_delete 로 이동하자");
String delete_code = ((TextView) view.findViewById(R.id.txtcode)).getText()
.toString();
// Starting new intent
Intent in = new Intent(getApplicationContext(),
MainActivity_delete.class);
// sending pid to next activity
in.putExtra(TAG_CODE, delete_code);
Log.d(" 여긴가", "8.3_delete 로 이동하자");
Log.d(" 여긴가", delete_code);
// starting new activity and expecting some response back
startActivityForResult(in, 100);
}
});
}
public void onbtn_purcharseClicked(View view) {
String total_price= String.valueOf(all_price);
Intent intent = new Intent(getApplicationContext(),MainActivity_purcharse.class);
intent.putExtra(TAG_PRICE, total_price);
Log.d(" 여긴가", "9.1_purcharse 로 이동하자");
Toast.makeText(getApplicationContext(), " 계산 화면으로 전환됩니
다.",Toast.LENGTH_LONG).show();
Log.d(" 여긴가", "9.2_purcharse 로 이동하자");
startActivity(intent);
total_all_conpare_price=total_all_conpare_price+all_price;
}
// 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
- 87 -