Basic usage of notification
notice
Notification is a special function of Android system. When an application needs to send a reminder to users, it can be realized by notification. Most Android users like this function. Even IOS has added similar functions after version 5.0
1. You need a notification manager to manage notifications. You can call Content' ...
Posted by stbalaji2u on Sun, 26 Jan 2020 09:59:40 -0800
Notes on Android 8.0 in the code
1, Cancel most static registration broadcasts
Today, when I was doing the download task, I monitored the download progress through the broadcast. It was normal in 7.0, but running on 8.0, it failed. After checking, I found that 8.0 started to cancel most of the broadcast static registration
1. Register dynamically on the page ...
Posted by Derleek on Sun, 26 Jan 2020 06:55:40 -0800
Define custom properties
I need to implement my own properties, such as com.android.R.attr
Nothing was found in the official documentation, so I need information on how to define these properties and how to use them from my code.
#1st floor
Qberticus has a good answer, but lacks a useful detail.If you want to implement these in the library, replace:
xmlns:w ...
Posted by Stevan on Sat, 25 Jan 2020 20:50:19 -0800
Development of sleep app (1): native.js calls the native mediorecorder object to realize the function of monitoring dreamtalk
We are going to develop a sleep aid app. On the way, we need to realize the function of listening to the user's dreamtalk. Because the h5 + encapsulated audiocorder object used by the front desk staff is not enough to achieve the expected effect, so we decided to use native.js to call the native mediacorder object to realize th ...
Posted by bloo on Fri, 24 Jan 2020 06:49:59 -0800
Android Notepad applet development
In recent days, I have made a notepad applet with my current Android development knowledge. I would like to share the development process here, hoping to help beginners like me.
The development tool is Android studio, the background language is java, and the database used is Android SQLite database. The functions and renderings are as follows:
...
Posted by arimakidd on Thu, 23 Jan 2020 06:21:50 -0800
IllegalStateException: This operation cannot be performed after onSaveInstanceState using ViewPager
I get user reports from apps on the market, but the following exceptions occur:
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1109)
at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:399)
at android.app.A ...
Posted by cosmo7 on Wed, 22 Jan 2020 22:27:36 -0800
Android system.img ext4 format
The image file of Android system.img is in the format of sparse ext4 image,
Space header format:
typedef struct sparse_header {
__le32 magic; /* 0xed26ff3a */
__le16 major_version; /* (0x1) - reject images with higher major versions */
__le16 minor_version; /* (0x0) - allow images with higer m ...
Posted by ukphoto on Wed, 22 Jan 2020 06:10:36 -0800
Details of Attributes, defStyleAttr and defStyleRes in Android
The system's own View can be configured in xml, and the custom View can also be configured in xml. In order to enable the custom View's properties to be configured in xml, the following four steps are required:
1. Add attributes for custom View through < declare styleable >
2. Declare the att ...
Posted by ryanthegecko on Wed, 22 Jan 2020 00:20:38 -0800
android view statusBar immersive
When it comes to the immersive experience of Android status bar, it has to be said that this is the pot left by the code designer to the developers. The version system api is fragmented and inconsistent. The subsequent versions are not compatible with the previous versions, so developers need to be c ...
Posted by ineedhelp512 on Tue, 21 Jan 2020 23:06:47 -0800
Android studio APP develops GridView and ScrollView
GridView and ScrollView
GridView
The GridView ScrollView and ListView are almost identical, and the process of creating them is the same as ListView, as you can refer to this post: https://blog.csdn.net/Ace_bb/article/details/104066710
The difference from List'View is that some properties in the layou ...
Posted by atlanta on Tue, 21 Jan 2020 19:20:02 -0800