APP and applet jump to each other

App and applet jump to each other: 1. App initiatively initiates the applet card to share with wechat, wechat clicks to open the applet, and then the applet can open App 2. App initiatively initiates to open the applet. Now the applet can open app mainly in these two ways. It seems inappropriate to jump to each other. After all ...

Posted by homer.favenir on Sat, 28 Dec 2019 07:29:05 -0800

Download and display pictures from the network

Get the network pictures through get request -- mainly for future reference and making a note Task requirements: 1. Create a new layout file, and add two controls: Button and ImageView to the layout file 2. Create a new GetPictThread to implement the Runnable interface (1) define a handler to transfer data to the main threa ...

Posted by zenag on Fri, 27 Dec 2019 11:06:50 -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

(5) Close page

Knowledge points in this section Three ways to close the page Close page Click the Mui action back key on the top navigation bar to return Right slide to close the page. It is closed by default Android click back The first is to execute the return event as long as there is one Right slide and click return need to be co ...

Posted by Thunderfunk on Fri, 27 Dec 2019 08:08:58 -0800

Android Chapter 2 reading and writing local files

  The first way to read and write: Use the initial IO mode to read and write to the application package directory package com.example.login; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.util.HashMap; impor ...

Posted by theblacksheep on Fri, 27 Dec 2019 07:33:24 -0800

Mobile development: APP positioning is too frequent, I use this way to "find out the culprit"!

background Positioning is now one of the most basic and indispensable capabilities of many apps, especially for applications such as taxi and takeout. However, the call to location can not be unrestrained. A little carelessness may cause the device to consume too much power, and eventually lead to the user uninstalling the application. My pro ...

Posted by pskZero7 on Fri, 27 Dec 2019 05:20:01 -0800

Android Chapter 3 SQLite database

1. Use execSQL API to operate the database. Step 1: create the Class MyOpenHelper implementation interface SQLiteOpenHelper, copy the constructor, onCreate and onUpgrade methods; Step 2, after creating the myOpenHelper object myOpenHelper, use the relevant API of myOpenHelper to operate the database. package com.xiaohui.create ...

Posted by janey on Thu, 26 Dec 2019 13:24:13 -0800

This is enough for Android ViewGroup event distribution

Before writing this article, I read the process of event distribution mechanism many times and came from different books, but I still can't remember the process of event distribution. So I wrote a demo process to analyze event distribution, in order to find the rules of event distribution mechanism and facilitate memory. Here ...

Posted by pp4sale on Thu, 26 Dec 2019 11:44:57 -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