Android Source Bug

Source: Internet
Author: User

In the Android system porting process, encountered a lot of source bugs. But we see no such problems on the market. Do these bugs go through the process of solving bugs in every developer? is the source code released by Android up-to-date? No idea for the moment. This is the only record I have encountered on the Android source bug.

mtk8382/8121:

1, Launcher3 no icon problem

Machine (8 inch) after the first burn is completed, the horizontal put, start, found Launcher no icon. The vertical screen does not have this problem. Further discovery of Launcher3 Clear data will also be true. Compared to database, found that the Workspaces field is not written. After debugging, judging is the software default vertical screen, if the first Launcher3 initialization (at this time the database no data) is a horizontal screen, it will be re-onCreate (each time the screen will be re-launcher->oncreate ()). Execute two consecutive times OnCreate () causes the first database to not finish writing, the second time to come, so that the databases write errors.

Observe Androidmanifest.xml found that the Android:screenorientation property is Nosensor, so each boot is the default (vertical screen). After changing to sensor, the first initialization direction and the actual direction of the same, there will be no execution two times oncreate (), the bug is resolved. The root of the problem is to perform two database write operations, and a better approach should be to judge and skip, so that the resolution is more comprehensive.

Android Source Bug

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.