In the previous article, the author introduced the development and use of OpenCV4Android of OpenCV, and attached the Android development example of calling OpenCV using Java interfaces.
With these two methods, you can easily develop and utilize
The Android window class provides A historical stack, which can be achieved through the stack principle. Here we add the Intent icon directly to the Intent when opening window A in window D. FLAG_ACTIVITY_CLEAR_TOP. When A is enabled again, all
Today, I used the Chart feature to record the project.
Achartengine is an open-source google project that can download technical documentation, jar packages, and project source code from the https://code.google.com/p/achartengine/
Demo download:
Case: click the button to start timing, from 0 to 10. clicking the Main thread will not affect the timing operation. Run the following vcC0yrXP1tXiuPa5psTco6zPwsPmuPq087zSwLS31s/Timer = "brush: java; ">/*** use postDelayed timing in Handler * @
1. What is Fragment?Fragment layout.Fragment is part of the Activity. We can use multiple Fragment in a single Activity to build a UI Panel, which can be used repeatedly. It can be imagined that it is a module in the Activity. It has its own
Camera development: 1. Camera Interface Design: 1. camera interface requirements:
① The camera screen is displayed on a horizontal screen: android: screenOrientation of the activity element in the list file
Attribute specifies the display status,
The pc-side osg has proved its strength, a large number of expansion projects, strict cross-platform. At present, there is no good 3D open-source framework available on mobile terminals. developers need to write from scratch, which is not a single
1. Data Interaction Between Fragment and Fragment(1) ask the question: in what scenarios do Fragment and Fragment require data interaction?(2) image description:
Scenario Description:Assume that the Fragment on the left has an input box and a
1. Relationship between Process and thread:
The process operating system allocates an execution unit, a pid process id, and a memory space. The memory space between different processes is independent of each other.
In a process, multiple threads can
1. Determine through the RunningTaskInfo class (additional permissions required ):
/*** Determine whether the current application is in the foreground or background */public static boolean isApplicationBroughtToBackground (final Context context)
In PinnedListView, there are still some details to be added in this article, mainly the drawing of views;
A view is actually drawn through canvas. The z sub-view in the ViewGroup usually needs to be determined by the measuring and layout operations
Sometimes fragment is used in xml files, but it is not used to display the View. The Code is as follows:
We can see that the above xml file contains LoadInXmlFragment. Let's take a look at the lifecycle of the Activity and
Let's take a look,
There are some differences in the layout effect implemented in ". The height of each grid is irregular, that is, the legendary waterfall flow layout. Generally, this effect can be achieved by using third-party controls, if the
16:56:45
Sometimes we can see that many mobile phones put the Call log list and Dailer on the same page. At the same time, Dialer can be folded and opened. I made a Demo to achieve this effect, for the simple version, take a note.
Simple animations
We have discussed how to use HierarchyViewer and Android lint to optimize our program. This article is summative and uses a small example to explain how to optimize the application layout. This example is provided on the android official website.
1. Android file Apk download and ZIP package solution
If your download server is an Nginx server, use conf/mime in the Nginx installation directory. location of the types file. Add the following statement to specify the MIME type of the APK file
Android Sina authorization and sharing
1. First, release a demo and jar package from the official documentation of Sina. The structure is as follows:
2. reference the sdk project in your own project. The reference method is as follows:
3.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service