I have an Activity that performs some Network operations in onCreate().
The point is that I have to launch another Activity after the data collection is completed.
How do I make sure the network operations on my onCreate() are completed before I start the other Activity so that I avoid the NetworkOnMainThreadException error?
 
     
     
    