The network can work with the application context. Here is how I could Applicationcomponent with appscope Now I would create this at the application level ApplicationComponent Shouod uses context as an external dependency
Next is an activity component expanding modulo an activity with an activity coefficient. Depending on the component application
In each of my actions I would create an activityComponet, giving it an applicationcomponet. This application component can be accessed through. Activity.getapplication (). Getapplicationcomponent ()
Here, make sure that your network method for providing network applications has an application. If so, then u should get the same network even in the rorate application.
Look for a sample GitHubapplication, place the link in the next edit.
He should also take a look at the zhitat (out of context for this question)
source share