The previous section has set up a group in the OpenFire server,
This section continues to see how to get a buddy list,
Get roster through the connection object, so you can use Roster.getgroups () to get all the groups, using Group.getentries ()
The last section OpenFire server has been built, this section see how to use the smack based on the XMPP protocol login OpenFire Server,
Create a good test account in the server
The following look at the Android client code, about the interface
As Android application developers, have to face an embarrassing situation, is their own hard to develop the application can be easily compiled by others.
Google also seems to have found the problem, starting with SDK2.3 we can see a Proguard folder
Often have netizens ask: "How to call WebService on Android platform"? Through communication I found that even some friends were asking how to use the Webserivce, not to mention the "Martian" terms such as soap and WSDL related to webservice. So, I
Socket Programming Basics:
Primary server-side programming and client programming.
Server-side programming steps:
1: Create server-side sockets and bind to a port (0-1023 is System reserved, preferably about 1024)
2: Socket set listening mode
The author introduces This example here is the Google SDK provides a Bluetooth chat program, simple but the information is huge, very suitable for beginners to learn Bluetooth knowledge.
Before learning This example, please read and understand the
The Android service is divided into two types:
Local Service: The same apk is called
Remote service: Called by another apk
The remote service needs to be done with the help of Aidl.
What's aidl?
Aidl (Android Interface Definition Language) is
First, what is context?
The document is vague, say is resource what, anyway is not understand, can actually think it is a pointer to the parent object, subject to the control of the parent object.
Two. Why do I need context?
Consider this
Why is the concept of thread synchronization? Why sync? What is thread synchronization? First look at a piece of code:
Package com.maso.test;
public class ThreadTest2 implements runnable{private testobj testobj = new Testobj ();
Because of the need to always get the network problem, today looked at WiFi operation, after finishing, made a class, may be incomplete, but the personal feeling has been fully able to meet the needs, of course, the method inside may be wrong or
Years ago to study how Android to achieve wireless communication function, wrote a small demo, recently nothing, so tidy up, and share with you. Earlier research found that Android want to achieve wireless communication has the following several
Now we are ready to modify the items in the previous section. This way, when the user presses the menu button, it pops up.
1. Use the engineering in the previous section to add some code to the Menusactivity.java.
The public class Menusactivity
ProgressBar provides a visual feedback when performing certain tasks that are being processed. For example, you are downloading data from a Web server, and then you need to update the status of the download. In this case, ProgressBar is a good
Androidtestcase is a generic test class under an Android platform that supports all JUnit assert methods and standard setup and Teardown methods. If your test requires access to the resources of the application or the test method relies on the
The basic usage of RogoGuice2.0 is described earlier, and other uses can be found in the RoboGuice1.1 Development Guide, which provides support for Fragment,view (in custom View use injection), which is not covered in this blog.
This example uses
This example describes the general steps for creating a test project and the basic method of writing test cases.
For simplicity, create a HelloWorld application with a greeting class defined as follows:
public class Greeting {
private
The Android compilation and testing tool needs to test the structure of the project's organization that conforms to the reservation: Test case class, test kit, and testing project.
JUnit is the basis for the testing of Android, in general, a juint
Injector creates an instance object of a type by examining the bindings definition. The bindings defined in module are called explicit declaration bindings (Explicit bindings). Injector first creates an instance object for a type with explicit
In the introduction of data binding, we used the system with the Simpleadapter. Android allows custom adapter, and can theoretically use arbitrary view (Layout) to display data. The following figure changes the Androidgraphics2dtutorial and uses a
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.