An interesting Android software exception statistics, and an interesting Android software Statistics

Source: Internet
Author: User

An interesting Android software exception statistics, and an interesting Android software Statistics

Statistical background:

To improve the coding quality, submit the bugs that occur during software development to your personal website, end the year, and make statistics for them.

Statistical items: one online project, three development projects, and one private project

Project developers: Author and five colleagues

Project themes: e-commerce and System Applications

Information Collection Date: 20:37:54 (capture the first exception) to 00:19:36 (last exception submission time during statistics)

Number of exceptions: 3192


Exception information collected by the database:


Exception statistics SQL:

SELECT (SELECT count (Id) From t_apperror WHERE Context LIKE '% Exception: cannot?mthisactionafteronsaveinstancestate %')/(SELECT count (ID) From t_apperror) as 'framage hiding failed'/** 0.0047 **/SELECT (SELECT count (Id) From t_apperror WHERE Context LIKE '% Exception: syntaxerror %')/(SELECT count (ID) from t_apperror) as 'syntaxerror'/** 0.0119 **/SELECT (SELECT count (Id) From t_apperror WHERE Context LIKE '% Stringcannotbecastto %')/(SELECT count (ID) from t_apperror) as 'string transformation error (most switched to json) '/** 0.0103 **/SELECT (SELECT count (Id) From t_apperror WHERE Context LIKE 'exception: Invalidint % ') /(SELECT count (ID) From t_apperror) as 'json parsing error'/** 0.0229 **/SELECT (SELECT count (Id) From t_apperror WHERE Context LIKE '% Exception: null _ % ')/(SELECT count (ID) From t_apperror) + (SELECT count (Id) From t_apperror WHERE Context LIKE' % Exception: java. lang. nullPointer % ')/(SELECT count (ID) From t_apperror) as "Null Pointer"/* 0.3932 **/SELECT (SELECT count (ID) from t_apperror WHERE Context LIKE 'exception: Fragmentalreadyadded % ')/(SELECT count (ID) From t_apperror) as 'exception: fragmentalreadyadded '/** 0.0063 **/SELECT (SELECT count (ID) From t_apperror WHERE Context LIKE 'exception: Unabletoaddwindow %')/(SELECT count (ID) From t_apperror) as 'exception: unabletoaddwindow'/** 0.1263 **/SELECT (SELECT count (ID) From t_apperror WHERE Context LIKE 'exception: Unabletodestroyactivity % ')/(SELECT count (ID) from t_apperror) as 'unabletodestroyactive'/** 0.0276 **/SELECT (SELECT count (ID) From t_apperror WHERE Context LIKE 'exception: BinaryXMLfile % ')/(SELECT count (ID) from t_apperror) as 'xml layout error'/** 0.0053 **/SELECT (SELECT count (ID) From t_apperror WHERE Context LIKE 'exception: Invalidindex % ') /(SELECT count (ID) From t_apperror) as "exceeds Index"/** 0.0103 **/

Statistical results:


Statistical conclusion:

1. NULL pointer errors are the most common.

2. the compiler will be silly, and binaryxml and syntaxerror errors will occur.

3. There are many fragment errors in coding, which may be caused by insufficient understanding of fragment.





The above statistics are not comprehensive and are for reference only.


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.