Kotlin – Issue in Method Parameters for requestLocationUpdates() method

I am getting location from NETWORK_PROVIDER as below : if(manager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) { val locationManager = mContext.getSystemService(Context.LOCATION_SERVICE) as LocationManager // Define a listener that responds to location updates val locationListener = object : LocationListener { override fun onLocationChanged(location: Location) { // Called when a new location is found by the network location provider. if (location != null)…

Details

Using CircleCi environment variables for aws access/secret keys

I created a simple API test to post a document. The endpoint needs to be authenticated using AWS access and secret key. Here’s my API test code. public static async Task<HttpResponseMessage> PostRequest(string requestUrl, dynamic json = null, byte[] file = null) { var credentials = new ImmutableCredentials(accessKey, secretKey, null); var url= url.SetQueryParams(json); var httpContent =…

Details