A full understanding of Android unit testing

Preface To be a great Android developer, you need a complete Knowledge System Here, let's grow up as we want. == Complete project unit test learning case It is well known that a good project needs to be built over time, and some effective testing is a useful tool to speed up the process.This blog post will take you through and step by step into ...

Posted by devxtec on Tue, 07 Jan 2020 19:21:50 -0800

Year-end small inventory: Do you know all of the 18 Android development essentials?

This article mainly introduces some of the knowledge points in Android development. By reading this article, you will get the following: 1. Check CPU temperature2. Startup Wizard Debugging Related Methods3. View APP Start Time4. Method of judging user,userdebug version5. Modify the default storage path for screenshots6. Resolving the kernel d ...

Posted by chaiwei on Tue, 07 Jan 2020 10:04:11 -0800

Android uses Glide to load network pictures with equal scaling

When loading android pictures, due to the limitation of the mobile screen, when many large pictures are loaded, we require equal scale, for example, according to the fixed width, equal scale height, so that the size scale of the picture gets the corresponding scale, but the picture does not change shape. Obviously, it can't be implemented accor ...

Posted by scraff on Tue, 07 Jan 2020 08:10:00 -0800

Step by step to teach you how to realize Alibaba's Sophix hot fix (I) configure Sophix information

1.0 integration preparation The gradle remote warehouse depends on. Open the project and find the build.gradle file of the app. Add the following configuration: Add maven warehouse address: repositories { maven { url "http://maven.aliyun.com/nexus/content/repositories/releases" } } Add grad ...

Posted by rohanm02 on Tue, 07 Jan 2020 04:55:49 -0800

android and h5 interaction

Modern mobile applications are almost both native and h5 mixed open, which not only ensures the user experience, but also enables the app to have the ability of dynamic update to a certain extent. At the same time, it is conducive to cross platform development and reduce human costs. The interaction between app and h5 can't ...

Posted by asgerhallas on Tue, 07 Jan 2020 03:10:33 -0800

android textview Click to change color

  1. Click textview to change color and release to restore. The effect is shown in the left figure: 2. No recovery after loosening. As shown in the right picture:                                                                  1, textview Click to change color, release to restore 1. Set clickable property to true -----Te ...

Posted by blogger3 on Mon, 06 Jan 2020 23:35:54 -0800

Custom AlertDialog specify layout size and set full screen

Preface: Dialog box is often used in daily development process. If there are many dialog boxes, you can encapsulate a tool class of CustomDialog by inheriting dialog. If you use less, you can use the custom AlertDialog to implement the pop-up box. In the process of using the custom AlertDialog, you may encounter the following ...

Posted by Emir on Mon, 06 Jan 2020 23:06:21 -0800

About Android calling nanohttpd class to access html in LAN

Want to record the problems encountered in the work, just learned to call the nanohttpd class, concise and clear. Attach the download address of nanohttpd package https://github.com/NanoHttpd/nanohttpd First of all, this paper introduces the use of nanohttpd here. You can build a lightweight Web server through this class. To realize the functio ...

Posted by sfullman on Mon, 06 Jan 2020 19:47:05 -0800

Android uses Jenkins for continuous integration and automatic packaging

1, Using shell to package apk automatically Command to call gradlew under android project root directory to complete packaging Create a new Android build.sh command file, and the contents of the configuration file are as follows #!/bin/bash #The directory where the version.properties file is located path='/Users/mac/andro ...

Posted by xxxzom_biexxx on Mon, 06 Jan 2020 14:32:48 -0800

RecyclerView jumps to the specified location

Since Android 5.0 launched RecyclerView, RecyclerView is more and more loved by programmers! We all know that the purpose of RecyclerView is to replace listview and ScrollView in the use of lists! So all the functions and methods of listview and ScrollView should have! But many methods of RecyclerView are not encapsulated in R ...

Posted by alconebay on Mon, 06 Jan 2020 13:40:12 -0800