LocationRequest.create() "This method is deprecated. Use LocationRequest.Builder instead." says in documentation. But I don't no how to use it.
LocationRequest locationRequest = LocationRequest.create();
locationRequest.setInterval(10000);
locationRequest.setFastestInterval(5000);
locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
I want to change location settings programmaticaly, so I need the variable locationRequest. Can anyone help me to create the variabel locationRequest. I use Java as programming language.