PRM392Xuất hiện trong 1 đề thi
You create a method in an Activity to start another Activity called PhotoActivity and get a result back using an explicit Intent. The code is designed to clearly define requirements and enhance clarity, making it well-structured, maintainable, and easy to understand. Which of the following is correct?
Các lựa chọn
AIntent intent = new Intent(this, PhotoActivity.class); startActivityForResult(intent, TEXT_REQUEST);
BIntent intent = new Intent(this, PhotoActivity.class); startActivityForResult(intent, REQUEST_CODE);
CIntent intent = new Intent(this, PhotoActivity.class); startActivityForResult(intent, PHOTO_REQUEST);
DIntent intent = new Intent(this, PhotoActivity.class); startActivityForResult(intent, TEXT_CODE);