0
 Car.createCar(
            context,
            null,
            Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER,
        ) { carObj, carReady ->
            if (carReady) {
                Log.d("TAG","createCar car obj ready $carObj")
                car = carObj

            } else {
           Log.e("TAG","createCar car obj not ready")
            }
        }

I have tried the above code and in most of the devices App is getting the car object is not ready. Why it's so even though I am using Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER flag. I am calling this code from the service class. Is there any wrong with the implementation?

Chetan Ansel
  • 398
  • 2
  • 20

0 Answers0