Android exit login summary
Objective: to complete the exit and login of Android APP
Idea: store multiple open activities in the List, open an addList, close a removeList, create a public APPCompatActivity base class (complete the activities add and remove in the base class, and the registration and cancellation of the broadcast receiver). When clicking ...
Posted by raister on Wed, 11 Dec 2019 10:54:32 -0800
Android 8.0 changes static registration to dynamic registration (custom standard broadcast)
Layout file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom=" ...
Posted by noodle on Wed, 11 Dec 2019 07:29:42 -0800
RxJava2 and Retrofit2 encapsulation (neat, simple, practical)
RxJava2 and Retrofit2 are old partners. Previously, I wrote a "unified processing of single request by RxJava and Retrofit2", which is Rxjava1.0. This time, Rxjava2.0 and Retrofit2 are used for encapsulation, which is clean, simple and practical. Compared with Rxjava1, RxJava2 optimizes and changes many things. There are ...
Posted by phpmixx on Wed, 11 Dec 2019 07:20:10 -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
Android Activity transition animation
Preface
I haven't written blog for a long time. I'm getting lazier and lazier. I still need to change! Today I learned the animation effects that are likely to be applied to my work.
Design sketch
Implementation ideas
LoginActivity jumps to MainActivity through transition Animation:
Determine the starting position coordin ...
Posted by barteelamar on Tue, 10 Dec 2019 20:40:12 -0800
Android Development: APP guide page launch page small Demo (instance)
From the beginning of Android, step by step to now, the process is really hard to say. Only those who have experienced it can understand the pain of learning Android for the first time. So now, when looking at the path on Android, I turn around and write some small demos, hoping to help the people who need them. Later, I will o ...
Posted by dp777 on Tue, 10 Dec 2019 19:11:01 -0800
How to transfer data between "activities" of Android applications?
I have a situation where after I log in through the login page, there will be an exit button on each activity.
Click sign out and I will pass the session id of the logged in user to exit. Who can tell me how to make session id available to all activities?
Any alternative to this
#1 building
The most convenient way to pass data betw ...
Posted by Roberto on Tue, 10 Dec 2019 14:36:09 -0800
Compile time annotation AbstractProcessor practice
Annotation in Java is a very amazing thing, especially now there are many Android libraries that are implemented by annotation.
We don't talk about annotations that are processed at Runtime through reflection, but rather at Compile time. Let's start with Java annotation processor.
Simple practice:
1. Create annotation
@Target({E ...
Posted by rd321 on Tue, 10 Dec 2019 14:14:31 -0800
android uses thread pool to speed up parallel computing and return computing results
###This method is suitable for a large number of data comparison, or single calculation without mutual influence
The thread pool has been used before, but in fact, there is no deep understanding and comparison when a large number of calculations are not encountered. Just this time, there is a need to use multithreaded parallel ...
Posted by youdontmeanmuch on Tue, 10 Dec 2019 11:28:00 -0800
How to compile Ali's MNN happily on windows
At present, in-depth learning has many high-quality open source frameworks on terminal deployment, such as Baidu's Paddle-lite, Ali's MNN, Tencent's ncnn.However, after watching a lot of evaluations, I finally chose MN of Ali to study.However, the corresponding tool chain provided by Ali is not particularly satisfied.I guess the most intertwine ...
Posted by fellixombc on Tue, 10 Dec 2019 09:55:53 -0800