Apache Mina is a network application framework designed to help users develop high-performance and highly reliable network applications. It provides an asynchronous API that is abstracted from Java NiO in different transmissions such as TCP/IP and
Starting from this article we'll look at the new API for threading that we added after Java 5, and first look at the API documentation:
Java.util.concurrent contains many thread-safe, well tested, high-performance concurrent building blocks,
If you do not use the system-titlebar (that is, the activity is set @android:style/theme.notitlebar), you need to write the progress bar yourself, which encapsulates a custom control and a public activity that loads the Web page for ease of use.
Nested level Two fragment cannot receive Oncreateoptionsmenu event, set Sethasoptionsmenu also no use.
Supplementary Note:
If you manually call level two fragment through the cache fragment, there may be some puzzling problems, such as more menu
Today's whim, and the ADT upgraded a bit, upgraded to ADT 22, sad reminders of the discovery Project is not used (can compile through, run wrong).
Error One: (warning)
Unable to resolve superclass of
"Android Exception" The specified child already has a parent. You are must call Removeview () on the child ' s parent.
Error message:
caused by:java.lang.IllegalStateException:The specified child already has a parent. You are must call Removeview (
Objective
A few days ago, a blog was recommended on Weibo to find this attribute when reading his article. Some properties are not commonly used, but they are very useful when needed, so an example is used, just to share with you.
Body
One, the
Objective
Online listview Drag up and down examples have, the effect is also very good, but the project should be dragged sideways, as long as the bite the bullet oneself write (mainly not found suitable), reference article 1 modified and come,
The function you need is simple, a list with a checkbox, and you need to know what the user has chosen for the project, as shown in the following figure:
Using Simpleadapter as the data adapter, rewrite the Simpleadapter.viewbinder method so that
1. Background
The Android system screen-cutting function is Google packaged, but also everyone would like to get, after one months of lengthy research, the blogger finally succeeded in the new version of Android, which is more than 4.3 version of
I. BACKGROUND
Maybe a lot of people like me, have done a long time Android program, but have not seriously sit down and learn the layout of the XML file. In fact, sometimes we use the view to draw or use the ADT graphical interface features can
Activity life cycle:
An activity has three main states:
It is active or running when in the foreground of the screen (at the top of the current task stack). It is the activity that the corresponding user operates.
When it loses focus but is still
On my device, the default preference name is Net.manoel.UsingPreferences_preferences.xml, which is prefixed with the name of the package. However, it is also useful to define a special name for a preference item. You can do this in the following way.
Sometimes, you might want to know the direction of your current phone screen at run time. You can use the WindowManager class to implement this functionality. The following code shows how to test the device's screen orientation by writing code:
Viii. Specifying a callback function
The content of this section is critical. Regardless of how complex or "cool" the Linux drivers are, it is important to allow user-space applications to interact with kernel-space drivers. The most common way to
The real use of fragment is to add them dynamically during the program's operation.
1. New project.
2. Res/layout/main.xml
3. Res/layout/fragment1.xml
4. Res/layout/fragment2.xml
In the example Android Roboguice use Guide (2): The first example Hello World describes the basic steps for using Roboguice development:
Create a roboapplication subclass Guiceapplication,guiceapplication as a appliacation subclass, modify
The StartActivity () method can invoke another activity, but this method does not return a result to the current activity. For example, if you have an activity that prompts the user for a username and password, and the information entered by the
Sometimes, you may need to pop up a dialog box to get some confirmation from the user's input. In this case, you can override the protected method (protected) Oncreatedialog () in the activity base class.
1. Create a project: Dialog.
2. Code in
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