Skip to main content

Posts

Showing posts with the label Android Programming Test Upwork

Android Programming Test Upwork 2019

1. What is the correct way to fix if checking the status of the GPS_PROVIDER throws SecurityException? Answers: • request permission for ACCESS_COARSE_LOCATION • request permission for ACCESS_FINE_LOCATION • request permission for INSTALL_LOCATION_PROVIDER • None of the above 2. Consider the code snippet below: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); <Some code here> mp.start(); Which of the following should be placed at <Some code here>? Answers: • mp.prepare(); • mp.prepareAsync(); • mp.loadMedia(); • mp.loadSource(); • mp.loadSource(); mp.prepare(); • No code is required at <Some code here> to start playback. 3. Which of the following would you have to include in your project to use the APIs and classes required to access the camera on the mobile device? Answers: • import android.drivers; • import android.hardware.camera; • import android.camera; • import android.util; • import android.hardware;   4. Which o...