android exceptions collect error information and save it to the crash folder

Save the log file to the sdcard, directory: crash folder under the sdcard root directory First, set permissions, no permissions to the final effect <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...

Posted on Wed, 15 Jul 2020 11:12:51 -0400 by brandon

QQ Side Slide for Technology Sharing

QQ Side Slide for Technology Sharing QQ side-sliding is implemented through custom containers, which mimics the function of QQ side-sliding.The main principle is that custom containers inherit HorizontalAScrollView or LinearLayout, measure menu and home page, redraw them, and handle events accordingly. They also include some attribute animati ...

Posted on Wed, 15 Jul 2020 10:31:38 -0400 by predator12341

kotlin uses Parcelize annotations to simplify Parcelable writing

kotlin uses Parcelize annotations to simplify Parcelable writing Parcelize Note kotlin added support for parcelable at version 1.1.4 The Android extension now includes an automated generator that implements Parcelable.The generator automatically creates the writeToParcel ()/ createFromParcel () method by declaring the serialized propertie ...

Posted on Wed, 15 Jul 2020 10:24:14 -0400 by mallard

Summary of Bluetooth Development Experience - Automatic Pairing

Scene: Control side - ordinary mobile phone; Controlled side - XX device (no screen, no user operation, system privileges) There are two ways to find a device when Bluetooth is on: search and specify a mac.Searching for Bluetooth devices with the search function involves the concept of "visibility". Bluetooth ...

Posted on Tue, 14 Jul 2020 11:33:30 -0400 by radhoo

Android Dropdown Refresh Dropdown Load More, PullToRefresh Third Party

Don't say anything but the picture above I'm using a third party that relies on PullToRefresh to do this This is just a listening method. First inject dependencies: //Refresh pullToRefresh compile 'com.jwenfeng.pulltorefresh:library:1.0.3' Then layout: <com.jwenfeng.library.pulltorefresh.PullToRefreshLayout android:i ...

Posted on Tue, 14 Jul 2020 11:12:12 -0400 by PHPMan

Android for Picture Reflection

Provides a tool class for Android image reflection effect, which is very useful. First, the previous image: 1. Ideas: Copy the original resource picture, draw the next half of the original picture, process the picture flip, create the reverse picture, synthesize the picture and use it as the canvas, draw the original picture and the ref ...

Posted on Mon, 13 Jul 2020 12:27:39 -0400 by glowball

divier for RecyclerView (you can control whether the boundary is displayed)

Design Idea: Because ItemDecoration is a modification of an item, if a split line is used, add a split line to the bottom of the item and there must be one more at the bottom of the last line of item. 1. If you want to delete the edges of all the items, you can only compute them dynamically: for example, 10 items only ...

Posted on Mon, 13 Jul 2020 11:59:32 -0400 by suresh1

Android Custom WheelView

function Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet) Design sketch Explain Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...

Posted on Mon, 13 Jul 2020 11:47:41 -0400 by SmoshySmosh

Android Design Mode - Builder Mode

Builder mode is also a very common mode, such as AlertDialog in Android, which uses Builder design mode. Here is an example to illustrate. 1. First let's create a Person class class Persion { public String name; //Full name public int age; //Age public int income; //income public String getName() { return name; ...

Posted on Sun, 12 Jul 2020 12:26:30 -0400 by centerwork

Location of Android Development

_The positioning written here is native, that is, the positioning function of the system itself. _First, introduce how you can always get the location information, then introduce a location update separately.On systems 6.0 and above, run-time privileges are required to use positioning. Always get location information ...

Posted on Sun, 12 Jul 2020 11:58:09 -0400 by MinDFreeZ