My app is facing a problem. My app has a button in one activity which will display a list of Wi-fi Printers in another activity.
But while moving from one activity to another a black screen appears and then I get the list of printers.
Point to be Noted : I have a LIST not an array of list. How to solve this problem?
Use
AsyncTaskfor searching printers. Execute the asynctask inOnCreate()of the listing activity, and show a progress dialog until search finishes. Check documentation here with exmple