Thanks for going through that awfully long function Philip! Appreciate you taking the time to analyze it line by line, understanding things makes me feel much more confident about the material.
For those getting the following error `Activity never becomes requested state "[DESTROYED, RESUMED, STARTED, CREATED]" (last lifecycle transition = "PRE_ON_CREATE")` but sure to : - Enable autostart in app setting - Grant the permission to "Display pop_up windows while running in the background" from app permission settings
Enoma's didn't work for me (it did for others) but removing the themeResId parameter and the putExtra line entirely made this work. You use default styles then, but for this that's fine.
Wow amazing the knowledge you have achieved, i try to understand all the stuff in this function but I have begginer knowledge of Kotlin language and there are so many keywords and other stuff I don't know how it works. I know that you try to explain the best but this has been difficult for me to understand it with the speed of the coding
Hi @Philip, Thank you for the video but while implementing i got this error -> "java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation." Please guide on it. HiltTestRunner class is not being used.
Someone else commented about this as well, but FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY isn't available. I'm just going to put a generic name in there for now. I haven't finished the vid yet though, so I'm not sure if it will work.
val mainActivityIntent = Intent.makeMainActivity( ComponentName( ApplicationProvider.getApplicationContext(), HiltTestActivity::class.java ) ).putExtra(FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY, themeResId) why here EmptyFragmentActivity is not showing in the suggestion in android studion in HiltExt.kt file
Thanks for such a great tuts, Philipp! Although I put 'extpoted="false"' in debug manifest explicitly, I always get "android:exported needs to be explicitly specified for element " error when running test. Anybody else stuck to such an error? Has anyone got any decision?
Thanks for going through that awfully long function Philip! Appreciate you taking the time to analyze it line by line, understanding things makes me feel much more confident about the material.
Glad it was helpful!
amazing and informative video as usual, Thank you Philipp! You always teach and explain things concisely and understandable!
For those getting the following error `Activity never becomes requested state "[DESTROYED, RESUMED, STARTED, CREATED]" (last lifecycle transition = "PRE_ON_CREATE")` but sure to :
- Enable autostart in app setting
- Grant the permission to "Display pop_up windows while running in the background" from app permission settings
11:15 I couldn't find EmptyFragmentActivity In fragment_version 1.3.3 so I downgraded to 1.3.0-alpha08 (same as yours in this video)
Thanks a lot. I learned many things through this video to develop my own APIs. well done 👍
Thanks, this video and others of yours is super helpful for my new job role. Subscribed mate
Thank you so much for making it easy to understand. God bless you.
Unresolved reference: FragmentScenarioEmptyFragmentActivityTheme
Everything went above my head
Why do we need to create a debug source set for the HiltTestActivity? Can't we place this activity in test source itself?
Lifesaver. Great video & really well explained.
This video is a life saver!
well unfortunately should find for latest testing videos.
With androidx.fragment:fragment-testing:1.3.0-rc02, EmptyFragmentActivity is now internal. Any work around or new procedure?
putExtra(
"androidx.fragment.app.testing.FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY",
themeResId
)
Enoma's didn't work for me (it did for others) but removing the themeResId parameter and the putExtra line entirely made this work. You use default styles then, but for this that's fine.
Thank you.
Is there a way to have dual pane fragments for tablets using navigation graph?
Wow amazing the knowledge you have achieved, i try to understand all the stuff in this function but I have begginer knowledge of Kotlin language and there are so many keywords and other stuff I don't know how it works. I know that you try to explain the best but this has been difficult for me to understand it with the speed of the coding
Thanks this was very very very helpful
Glad it helped
How to launch activities using dagger-hilt ?
Hi @Philip, Thank you for the video but while implementing i got this error -> "java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation."
Please guide on it. HiltTestRunner class is not being used.
i feel lost here :D anyways great effort mate !
what if I'm working with modular android development? Where should I put the manifest file?
did you find solution ?
Create a sourceSet with debug
🔥🔥🔥
Thanks
great job! thank U so much
hi sir please make a video on push notifications on background which when comes should show custom dialog even when app is closed or killed
Awesome though it's 2023. Does hilt have any solution now in 2023?
In my case I had to add this line in gradle:
debugImplementation "androidx.fragment:fragment-testing:1.3.5"
Thank you Bro
Thank you so much
You're most welcome
If anyone getting error after implementing this , try deleting .gradle file and then invalidate cache and restart.
Thanks 🔥😍
Someone else commented about this as well, but FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY isn't available. I'm just going to put a generic name in there for now. I haven't finished the vid yet though, so I'm not sure if it will work.
putExtra(
"androidx.fragment.app.testing.FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY",
themeResId
)
@@enomamichael5762 thanks for your effort where did u get that solution and where can i get explanation for that
EmptyFragmentActivity is now standalone (its not part of FragmentScenario), remove FragmentScenario. before EmptyFragmentActivity, and it'll import.
Wow, cool))
"below"
val mainActivityIntent = Intent.makeMainActivity(
ComponentName(
ApplicationProvider.getApplicationContext(),
HiltTestActivity::class.java
)
).putExtra(FragmentScenario.EmptyFragmentActivity.THEME_EXTRAS_BUNDLE_KEY, themeResId) why here EmptyFragmentActivity is not showing in the suggestion in android studion in HiltExt.kt file
Thanks for such a great tuts, Philipp!
Although I put 'extpoted="false"' in debug manifest explicitly, I always get "android:exported needs to be explicitly specified for element " error when running test. Anybody else stuck to such an error? Has anyone got any decision?