Android SharedPreferences Tutorial and Example

Blog

  1. Selecting documents in an Android appUsing file chooser and file picker dialogs in an Android application usually means delegating selection to the operating system. Rather than build a dialog…
  2. Reading and writing files in Android internal storageAndroid applications often need a reliable place to save small amounts of private data. A draft message, a downloaded configuration file, a session export, or…
  3. Connecting to IoT devices with the MQTT protocolAndroid phones increasingly serve as control panels for connected appliances, environmental sensors, solar installations, irrigation systems and industrial…
  4. Sending data with Bluetooth on AndroidBluetooth lets an Android application exchange messages, sensor readings or small files without a server or cable. The short-range wireless link may join two…
  5. Using accelerometer and gyroscope sensors in AndroidAndroid applications can react to movement by reading the device’s inertial sensors through Android’s SensorManager. The accelerometer reports linear…
  6. Playing audio files with MediaPlayer in AndroidPlaying sound in an Android app is usually a small MediaPlayer job: point it at an audio source, prepare it, and control playback from the interface. The same…
  7. Recording audio and video with MediaRecorder on AndroidAndroid’s MediaRecorder API provides a straightforward way to capture microphone input, camera footage, or both. It is useful for voice notes, interview tools,…
  8. Capturing photos with camera API in AndroidModern Android apps can send users to an external camera activity or control the hardware directly. The direct route exposes focus, exposure, image format and…
  9. Get the Current Location and Geocode ItAndroid applications often need to know where a user is before they can display a nearby shop, tag a photo, or fill in a delivery address. The operating system…
  10. Build an Android map with custom markersCreating a Map View with Markers Using Google Maps SDK gives an Android app a familiar way to display places, routes, and points of interest. The core pieces…