JAVA Eclipse Development Android program will often flash back what's going on

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.