Which of the following lines of code starts activity Activity2 from a current activity Activity1?
A) Intent intent = new Intent(this,new Activity2() ) ; startActivity(intent) ;
B) Intent intent = new Intent(new Activity2() ) ;
C) Intent intent = new Intent (Activity1.class,Activity2.class) ;
D) Intent intent = new Intent(this,Activity2.class) ;
Correct Answer:
Verified
Q60: Which of the following is true about
Q61: Which of the following attributes of the
Q62: Which of the following methods is called
Q63: Which of these is the incorrect explanation
Q64: Which of the following is incorrect about
Q66: Which of the following is not true
Q67: Which of these is NOT recommended in
Q68: If your application is throwing exception android.content.ActivityNotFoundException,
Q69: Which package of the following does not
Q70: You can create a custom view by
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents