Android development technology weekly Issue #67

Source: Internet
Author: User

Android development technology weekly Issue #67
News

  1. How does OpenJDK affect Android development?

    At the end of 2015, InfoQ mentioned that Google had decided to use OpenJDK in Android to replace the Java library based on Harmony. Although the announcement coincided with the Christmas Eve, Google's decision has aroused great repercussions on the Internet. We will summarize these ideas in this article.

    Tutorial
    1. ReactNative For Android Project Summary

      In Android Qzone 6.1, a couple's space is wading into React Native, and a dynamic plug-in is used to React Natived the space. On the basis of the space for couples, Android Qzone 6.2 integrates the topic sphere for React Native transformation. This article mainly describes the development and transformation process of the topic circle, data comparison and performance optimization. This ReactNative transformation is based on 15 Release.

    2. Analysis of the Android window

      During development, we often encounter various classes or methods related to Windows. However, in the Framework Design of Android, what is the window? What is the relationship between a Window and the Window class in the Android Framework? Take the mobile QQ main interface as an example. As shown in, the above status bar is a window. The mobile QQ main interface is naturally a window, and the pop-up PopupWindow is also a window, the Toast we often use is also a window.

    3. Design and Application of Finite State Machine in Android
      The main contents include: Tracing of Finite State Machine ideas, basic concepts and programming ideas of finite state machine, Android StateMachine source code parsing, and Android StateMachine application instances.

    4. Android camera development pitfalls

      Recently, I was responsible for developing a demand related to Android cameras. The new feature allows users to use mobile cameras to quickly take photos of specific sizes (OR, you can also perform Sticker-related operations on the photos you have taken. Because I have never been familiar with Android camera development before, I have made a lot of effort and time. This article summarizes the knowledge, procedures, and difficulties of Android camera development, hoping to help users who may come into contact with Android camera development in the future to get started quickly, saving time and reducing detours.

    5. Born or dead? Android process priority details

      Let's face the reality: There is no infinite memory, unlimited batteries, or other infinite resources on mobile devices. This means that you should treat process death as a natural process in the application lifecycle. The most important thing is to ensure that killing processes and memory collection do not negatively affect users. In fact, most of the Process architectures in Android are specially designed to ensure specific order and follow a set of patterns at the level of importance.

    6. Optimized Android thread and background task Development

      In Android development, you should not block the main thread. But what exactly does this mean? Ari Lacenski believes that Ari Lacenski should be especially careful when running for a long time or potentially complex tasks at this gulf Android Developer Conference. In this speech, we will discuss AsyncTask, Activity, and Service based on the needs of a real scenario, and gradually build a more easy-to-maintain solution.

    7. Android 6.0: Dynamic permission management solution

      Android 6.0 (Api 23) has introduced many new features, greatly improving the user experience and bringing new burdens to programmers. dynamic permission management is like this. On the one hand, it makes it easier for users to control their privacy, and on the other hand, they need to adapt to application permissions. the times are constantly evolving, and applications are always people-oriented. Let's add dynamic permission management for applications! A very good solution is provided here.

    8. How do I customize Android annotations?
      Currently, annotation-based open-source projects are becoming increasingly popular. Many popular open-source projects use annotations. How can we use annotations as elegantly as GitHub? The author of this article will give you a step-by-step demonstration of the complete code at the end of this article.

    9. Andriod attack method (1)

      Under the Root condition, we can use the Hooker method to bind the so library and reverse the tampering of the value to achieve the so-called cracking goal. However, at present, both software reinforcement methods, data processing capabilities, and client data authenticity verification have accumulated and developed, this "lazy technology" is no longer a panacea for cracking and modification. Furthermore, Reading Assembly commands, replacing function pointers, and pushing stacks out of the stack requires a certain amount of technical accumulation, which is not conducive to developers.

    10. Android Cracking Method (2)

      In this article, we will discuss some things about screenshots Based on Android multi-Cache files. The first section of the "method of cracking (1)" introduces the technology of screen capture based on the Root environment. Using this method to obtain screen data is quick and convenient. However, we should not be happy too early, but there are two system-level issues in this article. We will give you a detailed explanation here.

    11. Dynamic Android programming

      Some examples in this article need to have a certain programming foundation for Java or Android. Compared with Python, Java is a serious language. As a programmer who learns Python first, it is inevitable that he will feel uncomfortable and somewhat rigid when starting Android. He misses decorator and other convenient methods. To implement a simple logic, you may need to write a lot of additional code.

    12. Blood cases caused by Bitmap. recycle

      In Android, the storage of Bitmap is divided into two parts: one is the data of Bitmap and the other is the reference of Bitmap. In the era of Android2.3, Bitmap is referenced in the heap, while Bitmap data is stored in the stack. You need to call the recycle method to manually recycle the memory. After Android2.3, the entire Bitmap, data and references are stored in the heap. In this way, the entire Bitmap is recycled and the recycle method is no longer needed.

    13. How to Learn about Android Animation?
      What can an animation look like (1st categories) the following blog posts demonstrate "Animation" to developers in the following three aspects: they provide some guiding principles and explain why they want to do this, or what are the benefits of such an animation? Give a GIF animation to intuitively show what the animation is; give code snippets (Key classes, methods, resource files) or implementation ideas to implement the animation; this is great. It helps us quickly create an animation impression and understand what an animation is represented by and how it should be implemented. In addition, many code snippets are extracted from open-source projects, which means we can debug these animations.

    14. Introduction to Android Development Culture

      Quality from the perspective of refreshing user feedback, we can only look at the original idea of CPU, but in fact it is not. But we can collect data. In the long run, we are very simple, how can I get rid of this idea of resignation? What can I do? Any team has some problems, I think I can still accept the lack of warning that our team was currently in trouble with Android Development (almost seven years ago ...).

    15. How to manage the dependency of the Android library?

      When selecting a library for a project, Android Developers not only consider features, availability, performance, document richness, and technical support. They also care about the library size and the number of methods to add. Because the larger the project, the more dependencies there are, and the number of application methods should be controlled below 65 KB, developers feel a lot of pressure. In addition, for non-release projects, Proguard is too inefficient to use, and developers are afraid of using multidex as a plague. Therefore, the author of the compiling library must pay special attention to the project size.

    16. How to quantify the "card" of Android applications "? -Smoothness Principle & definition

      As mobile apps are becoming increasingly competitive today, various Android App performance indicators, such as CPU and memory consumption, have been measured objectively. However, there has never been a reliable metric for smooth App use to match users' objective feelings with data. Although FPS (frames per second) was previously used as a performance indicator for game or video apps, it is not a proper metric for apps with few page updates.

    17. Fragment-based Android front-end service framework

      Starting from Android 3.0, Google introduced a brand new Fragment UI system to reinterpret reusable and extensible Android UI design concepts. The Android Support Library provides a complete post-Fragment compatibility solution (backport) for any lower-version Android app developers ). Therefore, if you develop a new Android Application, you do not have to worry about using Fragment. Embracing this powerful mechanism design as early as possible can help you save considerable development and maintenance workload.

      Open-source libraries & Projects
      1. DilatingDotsProgressBar

        Progress bar for alternating dot Expansion

      2. MaterialIntroView

        A library used to add user guide views to Android apps

      3. AppCompat-Extension-Library

        Additional controls are provided based on the AppCompat Design Library: AccountHeaderView, FloatingActionMenu, CircleImageView, FlexibleToolbarLayout, Delightful Detail Drawables, and TypefaceCompat.

      4. Freezer

        A simple ORM Library

      5. ProgressFloatingActionButton

        FloatingActionButton with progress bar

      6. CircleDemo

        Simulation of the circle of friends

      7. AndroidLintPlus
        Customize Lint rules

      8. AndroidProcess

        Don't do anything bad.

      9. Sliding-deck

        Excellent results

        Tools
        1. Pngquant

          Image compression command line tool, tutorial

        2. Dexcount-gradle-plugin

          Plugin for counting the number of methods

        3. GoogleDevelopersColorScheme

          Code color scheme for IDEA and Android Studio

          Video
          1. Android application UI hardware accelerated rendering technology

            Share with Luo shengyang

            Outside of Technology
            1. Stay away from "unintelligent and diligent people"

              See if there are such people around you

            2. What kind of experience is there when dealing with unreliable PM and UI?

              Is it a field or a reality?

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.