I wanted to check whether the phone is rooted or not. For that I wanted to check as soon as the app is clicked.
@HiltAndroidApp class ShoppingApp : Application(), Configuration.Provider { override fun onCreate() { super.onCreate() }
This is the first class which is called as soon as the app is launched. Inside this onCreate, I wanted to add check if device is rooted. If its rooted I want to show AlertDialog else navigate to next screen.
When adding composable AlertDialog, its throwing error @Composable should be called from the context of Composable.
In this case, how should I code.