'KoinApplication has not been started on another activity
My app has a splash activity where i check for login and start Koin.
The problem is, when i go to another activity, put my app on recents (so android basicaly kills it) and go back, android try to open the activity again but Koin is not started so it crashes.
Am i doing something wrong or should i try to start Koin on every activity that uses it?
Here is how i'm starting Koin:
onCreate......
KoinApplication koin = KoinAndroidApplication.create(SplashActivity.this)
.printLogger(Level.ERROR)
.modules(
NetworkModule.getNetworkModule(),
MainModule.getMainModule()
);
startKoin(koin);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
