Tag: Android

android retrofit example

Make your first API call using retrofit

Add retrofit and GsonConverter in your project

why to use GsonConverter here?. It will be useful for converting JsonObject directly to Java class or Kotlin class. So, we only need to pass our models.

implementation 'com.squareup.retrofit2:retrofit:2.6.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation 'com.google.code.gson:gson:2.8.5'

READ MORE

Add geofences in android

Geofences is a virtual circle created around specified location with specified radius. It is the awareness of users current location with his proximity location. If you want to notify user for particular location you can do this with Geofence. Get location details for that location and add geofence with certain radius. You can listen enter, exit and wait ( or dwell) event for that location and based on that you can notify user

READ MORE

TheJadav : For happy coding