Android timing task and the realization of alarm clock

There are many ways to implement timing in android. The common combination of Handler and Thread, handler.postDelayed, and AlarmManger to be used can implement timing tasks, but the usage scenarios are quite different. Here is how to use AlarmManager to implement timing tasks. Knowledge points involved: 1) BroadCastRec ...

Posted on Sat, 02 May 2020 17:05:05 -0700 by Mikell

Introduction and use of Recyclerview

Introduction: 1.RecylerView is a control in support-v7 2. This control is used to display a large number of datasets in a limited window, such as ListView and GridView. RecyclerView architecture provides a plug-in experience, high degree of decoupling and exceptional flexibility. It provides different settings Layou ...

Posted on Sat, 02 May 2020 12:01:42 -0700 by TraceyK

java AES encryption in Android

1 foreword In java development, encryption is still a very common requirement. There are two common encryption methods: symmetric encryption and asymmetric encryption, which use different encryption and decryption keys. The detailed encryption principle will not be discussed here. AES encryption is widely used in Java ...

Posted on Sat, 02 May 2020 07:56:31 -0700 by phpconnect

[reading notes] analysis and practice of Android source code design mode (V) - factory mode mode

[reading notes] analysis and practice of Android source code design mode (1) [reading notes] analysis and practice of Android source code design mode (2) - single case mode [reading notes] analysis and practice of Android source code design mode (3) - builder mode [reading notes] analysis and practice of Android source ...

Posted on Sat, 02 May 2020 06:48:12 -0700 by danieliser

The screenshot of the Android activity is saved and displayed to the album View. The animation of the picture disappears

Today, there is a requirement for the project. Take a screenshot of the Activity interface, save it locally, and then send the picture when you send it instantly Process: screenshot - > save to local - > send broadcast notice to update Gallery Paste the renderings first Screen capture process Files saved after screen capture Scre ...

Posted on Sat, 02 May 2020 06:41:57 -0700 by partypete

Tab radiobutton+drawableTop toggle change text color and picture

Implementation effect: radiobutton uses drawableTop to display pictures (use drawableTop selector and text color change selector in xml) code to set picture size) Put these 6 pictures (unchecked, checked) recommend_unselected      recommend_selected                           smile_unselected                    smile_selected      ...

Posted on Sat, 02 May 2020 03:36:19 -0700 by weknowtheworld

android collapsible title block

1, First, let's see the effect 2, Code 1,MainActivity.java package com.example.lcf.myapplication; import android.os.Bundle; import android.support.design.widget.CollapsingToolbarLayout; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.To ...

Posted on Sat, 02 May 2020 03:35:56 -0700 by weazy

Android simple package get verification code countdown

We believe that the effect shown in the figure is not unfamiliar to everyone. We can use many methods to achieve this effect. Here we use CountDownTimer timer to simply encapsulate this effect, which is convenient for us to call at any time. The first page defines the following attributes in attrs.xml: <resourc ...

Posted on Fri, 01 May 2020 16:08:39 -0700 by thunder708

Android Bluetooth 4.0BLE Communication Read-Write Data Update

Project Requirements: app communicates with Bluetooth, and receives messages sent by hardware keys via Bluetooth. app does the corresponding operation, which is similar to Bluetooth headset listening and hanging up. Less contact before Bluetooth development, classic Bluetooth development has been done android bt , BLE does little, so I don't ...

Posted on Fri, 01 May 2020 14:11:53 -0700 by Paulkirkewalker

Android NDK development journey 37--FFmpeg transcoding compression

Android NDK development tour directory Preface Compression form of command line transcoding under Windows ffmpeg -i input.mov -b:v 640k output.mp4 Android also uses the form of FFmpeg command line (mixed encoding) for video transcoding compression. 1. Introduce FFmpeg transcoding Library 2.Android core code 2.1.jni Java declaration ...

Posted on Fri, 01 May 2020 14:05:44 -0700 by ReignFire