I have a working Java application. I put a breakpoint, start debugging and get a white screen on the emulator and on the device, although there are elements in the xml that should be displayed.
- The screen will be formed only after onResume. Maybe you put dots onCreate? - alex
- Yes, I put dots in onCreate. There is no onResume in my code; When creating a project, it does not appear automatically. - Dmitry
- onResume is a method from the activation life cycle. In order for it to appear, it is necessary to override Ctrl + O, but he himself will not give you access to the interface, since it must be completed. If you need to add some method, call it on some event (for example, pressing a button) or use testing - alex
|