Posts

Showing posts with the label Android Beginner

6 Essential Interview Questions with Answers

Image
1 .  What is a ContentProvider and what is it typically used for? A ContentProvider manages access to a structured set of data. It encapsulates the data and provide mechanisms for defining data security. ContentProvider is the standard interface that connects data in one process with code running in another process. 2.  There are four Java classes related to the use of sensors on the Android platform. List them and explain the purpose of each. The four Java classes related to the use of sensors on the Android platform areL Sensor : Provides methods to identify which capabilities are available for a specific sensor. SensorManager : Provides methods for registering sensor event listeners and calibrating sensors. SensorEvent : Provides raw sensor data, including information regarding accuracy. SensorEventListene r: Interface that defines callback methods that will receive sensor event notifications. 3.  Under what condition could the code samp...

Find your lost Android device with Android Device Manager

Image
If you have lost your phone don’t worry, it is often possible to get it back. With the free Android Device Manager tool you can locate your phone, seeing its position on a map so you can track it down. Location: The location of your Android device will appear automatically on the map, along with the name of the place, when it was last used, and when it was last located. You can zoom in and out of the map to check out the location. Ring: The location data is an approximation and may not help you figure out if it's hiding somewhere in your home. Instead of having someone call your phone to help you find it, you can choose to ring your device from Android Device Manager. This will cause your device to ring for 5 minutes at the highest volume, even if it's set on silent or vibrate. Lock: Locking your device remotely can be useful if you want to lock your Android device so no one can access your data while you're trying to recover your lost device. To lock your d...