Class without new is directly used to flash back, such as the following I declared the Clientsocket class, click the Connection button, if you do not First Direct connect will flash back
?
When you create Findviewbyid on the current page, if you can not find the specified ID will also flash, such as I want to find the specified ID is btnmovel_seta, when the wrong time there will be a problem, and the XML itself will not error, if the ID does exist, but not on this page.
?
There must be a click on the button, based on the ID of the interface control-get control content-converted to string/text , but not in the interface OnCreate to complete the first step of the binding, do not do, you can find me in the Connection and send button click after the process is done , if you do the first step when you put it in OnCreate, it will also flash back.
?
When there is a flash, there will be hints in logcat, such as the most common nullpointerexception errors, the general is that the variable is not the use of new is caused, you can in the flash back of the step (always will not be open on the Flash, always click on a button after the Flash), all commented out, See which line of the bottom is causing the flash back.
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
JAVA Eclipse Development Android program will often flash back what's going on