ContentProvider, contentprovider instance
Android has four components: activity, contentProvider, Intent, and service.
The following describes ContentProvider:
The content provider provides specific application data to other applications. Data can
Broadcast and broadcasting
Recently, I have been studying the Broadcast Mechanism of android to sort out some notes (I personally understand that there is something wrong with it)
I. Register broadcast-Dynamic Registration (register in code)
1.
ActivityThread ApplicationThread brief record, activitythread
The android app ui is drawn in the main thread, and this thread is ActivityThread.
But in fact, the source code shows that ActivityThread does not inherit from Thread, but is an
TextView advanced application: implements some text click events and textview events
Sometimes we need to implement a simple look function in the application. For example, if some text is displayed in TextView, the color of some text must be
Android-Batch image loading OOM Solution,
I. scenarios and causes of OOM Problems
A good app always has exquisite pictures, so image loading during Android development is always unavoidable. OOM may occur if improper processing occurs
Use pngquant to compress png images,When it comes to png Image Compression, many people may know the website TinyPNG. However, if the PS plug-in requires money (although cracked), the Developer API will be connected to his server. without mentioning
Android rolls up TextView and androidtextview
In the development process, we want to implement a rolling effect of textview within a fixed length. Although scrollview can be rolled, it does not have a fixed range. A maxline attribute exists in
Instant Messaging: socket usage, instant messaging socket
In the previous article, I talked about the method of Instant Messaging programming. I used socket to write a communication application that imitates QQ chat. By the way, I would like to use
Compile the Android NDK sample code in the Linux Command Line, androidndk
Over the past few days, I have considered writing an Android Runtime to accelerate the HTML5 Canvas, so that GameBuilder + CanTK can not only develop quickly, but also run
Detailed steps for migrating an Android Eclipse project to Android Studio: eclipseandroid
After applying for a new computer, I recently started to use Android studio to develop the project. After installing studio, the first thing I need to do is to
Java --- 24 --- basic data type object packaging class, java judges object type
Basic Data Type object Packaging
Byte Byte
Short
Int Integer
Boolean Boolean
Float Float
Double Double
Char Character
The most common function of the basic
Simplified Adapter writing and findViewById () method optimization, adapterview
First write a ViewHolder:
Public class ViewHolder {private View mConvertView; private Activity mActivity; private SparseArray mViewArray; // SparseArray public
Android custom adapter and ListView Click Event combination, androidlistview
The following shows an example of using ListView and a custom Adapter. clicking an entry in ListView will display a dialog box to modify the score. After the modification,
Analyzes and copies a file, and changes the file suffix and process suffix during the copy process.
This is my own practice:
Copy all. java files in one directory to another, but change the file suffix during the copy process.
Idea: just like the
Copy and change the file extension name to. txt.
This is my own practice:
Copy all. java files under a file to another file. After the copy is successful, change the file you just copied to. txt.
Idea: first, we need to clarify the source we want to
Android webkit event Transfer Process
You can customize your own portable browser apk Based on android webview, and encounter many key-pressing issues. So we simply studied the keyevent event transfer process.
Frameworks Layer
The keyevent event
Android control: High imitation main UI, android high imitation microHigh imitation main UI
Previously, in the "Save status" text after "Fragment switching" of Android components, we talked about how to save the original status after Fragment
Open-source Android-PullToRefresh pull-down refresh source code analysis
The PullToRefresh library is used at most. github mainly analyzes the source code implementation today.
We use the drop-down refresh of ListView for analysis, and the others
Android_View_View rendering process1. Drawing Process of the View tree
When the Activity receives the focus, it will be requested to draw the layout. This request is processed by the Android framework. The painting starts from the root node, and the
Introduction to xml and introduction to xmlWhat is XML?1. The full name is Extensible Markup Language, which is released by W3C.2. XML is used to save data with certain structural relationships.3. Tag Nesting is essentially a string.4.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.