Câu 67: AND-401: Android Application Development
Which of the following lines of code starts activity Activity2 from a current activity Activity1?
Nội dung câu hỏi
Which of the following lines of code starts activity Activity2 from a current activity Activity1?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Intent intent = new Intent(this,new Activity2()); startActivity(intent);
- B. Intent intent = new Intent(new Activity2()); startActivity(intent);
- C. Intent intent = new Intent (Activity1.class,Activity2.class); startActivity(intent);
- D. Intent intent = new Intent(this,Activity2.class); — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.