Android can print multiple APP packages in the same set of code and install and run on the same mobile phone

Android can print multiple APP packages in the same set of code and install and run on the same mobile phone Android can print multiple APP packages in the same set of code and = = install and run on the same phone = =, and = = APP name and desktop icon are also different== Give different package names to the same set of code ...

Posted by darkhappy on Sun, 29 Dec 2019 07:33:06 -0800

Android several lines of code solve the problem of permission adaptation above 6.0

GitHub APK Copy the libray module to the project, or directly rely on the following in build.gradle: allprojects { repositories { maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.AnJiaoDe:Permission:V1.0.0' } Note: if sync reports an error, it is related to com.android.too ...

Posted by redking on Fri, 27 Dec 2019 10:35:48 -0800

Android Log encapsulation

Catalog I. Introduction 2, Log specific package 3, Turn off debugging 4, Source address 5, Content recommendation I. Introduction Why encapsulate logs? First, compare the effect: Print results: Before encapsulation: enter Log.e(TAG, "onCreate:",); you need to enter TAG and msg. And we can view the log i ...

Posted by BlackViperSJM on Thu, 26 Dec 2019 09:35:10 -0800

1 minute to master the use of ViaBus architecture

Copyright notice: This is the original article of blogger. Please indicate the author and link for reprint. More on KunMinXhttps://blog.csdn.net/IamTheReal/article/details/82837568 0. Add the following dependencies to build.gradle of the module implementation "com.kunminx.viabus:viabus-android:0.3.3" 1. Define an interface f ...

Posted by kidbrax on Wed, 25 Dec 2019 11:41:39 -0800

Various shape effect processing tools for Bitmap

Because many times we need to use some special effects to cut the picture, we write a simple help library. At present, we only do some processing to the shape, and then we will optimize and improve it to add more effects. 1, Various treatment effects The first picture is the original picture, followed by cutting circle, square, ellipse, arc, r ...

Posted by goocharlton on Fri, 20 Dec 2019 12:55:12 -0800

Gradle for android profile

preface Create a new project directly under Android Studio and you can use it! I. Gradle settings file settings.gradle is used to indicate which modules Gradle should include when building an application. Only app module is included here include ':app' II. Top level construction documents Look at build.gradle of the project under ...

Posted by flash gordon on Wed, 18 Dec 2019 11:01:47 -0800

Android studio 3.2 version custom apk name compilation exception

When the project is upgraded from version 3.x to version 3.2, the original code of custom output apk name is invalid, and the new writing method is changed to //This script is written in a project level gradle file // AS3.2 version / / output apk custom name android { applicationVariants.all { variant -> ...

Posted by djmc48 on Wed, 18 Dec 2019 08:59:34 -0800

Component architecture design: routing architecture design and coding implementation

Blog Homepage Design of component-based routing architecture In the previous article, we explained the class loading and global Map recording to realize the interaction between component modules, and slowly derived the APT technology. So in the component architecture, we need to think about what kind of class files are generated through apt + j ...

Posted by hyngvesson on Fri, 13 Dec 2019 03:04:10 -0800

Android uses Gradle to realize multi-channel packaging, with different package names, logos, names, themes, etc. for the same project

Recently, the company has a new requirement. According to the previous project, change the name, logo and some resource files to repackage a new app Implementation ideas 1. Copy a project name, logo, etc. (inefficient, troublesome) ❌ 2. Multi channel packaging (convenient and fast) Implementation method Build.gradle > An ...

Posted by candle21428 on Thu, 12 Dec 2019 10:41:53 -0800

Exception handling of Resources$NotFoundException in Android WebView 5.x system

Recently, a crash problem was found in the online background. On Android 5. X, when creating a webview, a carsh will occur, with an error message:   Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040003 at android.content.res.Resources.getText(Resources.java:318) at android.content.res.VivoResourc ...

Posted by Gambler on Wed, 11 Dec 2019 06:22:05 -0800