Android silent installation implementation

There are many schemes for Android silent installation, such as using ProcessBuilder or Runtime.getRuntime().exec() to run the PM istall command, but this method needs su first, root permission, or reflection to get PackageManager.installPackage(), which is also cumbersome to use. At the same time, system permission needs to be ...

Added by Drebin on Mon, 16 Dec 2019 18:37:57 +0200

Android Studio development learning notes - 4

Recently, I haven't updated my blog for a long time. I've been busy with the studio project recently. By the way, I went out for a tour on national day to relax myself. It turns out that I was wrong. It's a distraction. It's a distraction. It's a person everywhere. I'll go out to play in the future. It's definitely not on holid ...

Added by Smeep on Sun, 15 Dec 2019 23:26:03 +0200

UI experience -- Material Design practice (2)

Catalog I. FloatingActionButton II. Snackbar III. CoordinatorLayout IV. CardView I. FloatingActionButton 1, effect For example, the button in the lower right corner: 2, use <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" ...

Added by scarface222 on Sun, 15 Dec 2019 21:59:27 +0200

Gradle custom plug in

Official text gradle learning official translation website 1. New project Configure build.gradle //Use the official 'groovy' plug-in apply plugin: 'groovy' //Add api dependency dependencies {dependencyHandler -> dependencyHandler .compile gradleApi() dependencyHandler. compile localGroovy() } //Add the currently used ve ...

Added by bigsid on Sat, 14 Dec 2019 17:43:48 +0200

Quickly build Android compiling environment under Linux

Background: in the era of mobile Internet, most enterprises have mobile clients, and mobile clients have two factions because of different OS, namely Android and IOS. For Internet technology practitioners, the most direct difference between the two is open source and closed source, which also leads to the overall stability and stability of mob ...

Added by pelegk2 on Thu, 12 Dec 2019 22:23:43 +0200

Summary of CMakeLists.text used in NDK development

When we create a project, if Include C++ Support is checked, a CMakeLists.text will be generated in the same level directory of main Let's introduce one by one # For more information about using CMake with Android Studio, read the # documentation: https://d.android.com/studio/projects/add-native-code.html # Sets the minimum ...

Added by cheald on Thu, 12 Dec 2019 17:18:39 +0200

Principle of Flutter and practice of meituan

Alibaba P7 mobile Internet architect advanced video (in daily update) for free, please click: https://space.bilibili.com/474380680 Take out full category page practice After investigating the features and implementation principles of Flutter, the take out plan is to launch the full category page of Flutter in grayscale. For the integration mode ...

Added by Fakcon on Thu, 12 Dec 2019 08:30:19 +0200

PHP DES-ECB encryption docking Java decryption

Recently, the company has a business that needs to connect to the third-party interface, but the parameters need to be encrypted. The other side only provides a java demo and searches all over the Internet. No direct method can be found. Later, it was connected with the company's Android Engineer. Here's a record of the general process. First, ...

Added by tcorbeil on Wed, 11 Dec 2019 23:00:29 +0200

Solve the memory leak problem caused by EditText in android

LeankCanary is used in the development. In a simple page (for example, only including Edittext), it will also lead to internal training leakage. For this reason, I found a lot of information on the Internet and finally solved it.For example, a layout:<LinearLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"android ...

Added by Pedro Sim on Wed, 11 Dec 2019 20:36:45 +0200

Android Development Notes - RecyclerView

Summary RecyclerView is a scroll control provided in support:recyclerview-v7. To use this control, you need to do the following: Introduce dependency Library Add RecyclerView label to layout file Create a single layout file Create adapter class Set up the layout manager and adapter for Recyclerview in the activity Altho ...

Added by sam_rich on Wed, 11 Dec 2019 19:38:04 +0200