skip to Main Content

Android Studio – How to inject LocationTracker using Koin DI framework

I'm migrating from Hilt to Koin. With Hilt I'm doing the following for injecting LocationTracker: @Module @InstallIn(SingletonComponent::class) object LocationModule { @Provides @Singleton fun providesFusedLocationProviderClient(application: Application): FusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(application) @Provides @Singleton fun providesLocationTracker( fusedLocationProviderClient: FusedLocationProviderClient, application: Application ): LocationTracker = LocationTracker(…

VIEW QUESTION

Android Studio – RecognizerIntent.EXTRA_LANGUAGE doesn't change Recongnizer language suddenly

I have a code in my application which recognize "Persian" language and make a Speech-to-text function: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "fa"); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Speak..."); but now it's suddenly stopped working and just recognize my STT as English!…

VIEW QUESTION
Back To Top
Search