MCQs > IT & Programming > Android Game Development > which code line sets the class 'MainGamePanel' as the handler of the events happening on the actual surface? 1. public class MainGamePanel extends SurfaceView implements 2. SurfaceHolder.Callback { 3. public MainGamePanel(Context context) { 4. super(context); 5. getHolder().addCallback(this); 6. setFocusable(true); 7. }

Android Game Development MCQs

In the method given below, which code line sets the class "MainGamePanel" as the handler of the events happening on the actual surface?

1. public class MainGamePanel extends SurfaceView implements

2. SurfaceHolder.Callback {

3. public MainGamePanel(Context context) {

4. super(context);

5.   getHolder().addCallback(this);

6. setFocusable(true);

7. }


Answer

Correct Answer:

5

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Android Game Development MCQ Questions

search

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it