Use the LogPhoneUtil tool class to save APP running logs on Android phones, and android log tool class
Recently, the company's tests have always proposed such a bug. Of course, they also blame their code for poor writing. Therefore, the test will always crash the app, and there is no log printing when they crash, when I come back to reproduce it, sometimes it's
First of all, Baidu installed 9 million simulator, no longer detailed.
Open the 9 million Android simulator. Need to be registered users can use, if you have registered before, please login directly, not registered, you need to click Registered account to register one.
Enter your registered username and password. Click to login to open 9 million
Aidl:android Interface definition Language, which is a description language of the Android internal process communication interface, through which we can define communication interfaces between processes.
Icp:interprocess communication, internal process communication.
Use:
1, first create a aidl file, aidl file definition and Java code similar, but! It can refer to interfaces and classes defined in othe
onresumeevent onresume) {ln.d (' called Dosomethingonresume in Onre
Sume "); }//As you might expect, some events can//have parameters. The OnCreate Event//has the SavedinstancestaTe parameter that//android passes to OnCreate (Bundle) public void Dosomethingelseoncreate (@Observes on
CreateEvent onCreate) {ln.d ("OnCreate savedinstancestate is%s", Oncreate.getsavedinstancestate ())}
Course, can have multiple//listeners for a given
What I saw when I flipped through the Forum, I always felt that I would use these fragmented things in the future, so I reprinted the stream and saved it ~~~~
Original http://www.eoeandroid.com/thread-71143-1-1.html
Everyone should understand that in Android, shape is often used to define some Display Properties of controls. So how to use it? Today we will look a
Logcat is a command-line tool in Android that can be used to get log information for a program . development debugging and testing positioning Bugs are very usefulThere are two ways to achieve The purpose of viewing log. An Eclipse integrated DDMS plugin1 Install Eclipse Environment, JDK, etc., note the version and number of digits match2 Installing DDMS3 Open Eclipse, start Ddms, as follows:4 found LogCat (Windows->show view->logcat), that is, you
Android-use socket communication to establish Network Chat Room 1, android-socket
First, create a server program:
1. MyServerSocket. java
package com.test.test;public class MyServerSocket {public static void main(String[] args) {new ServerListener().start();}}
2. ServerListener. java is used to listen for port connections
Package com. test. test; import java. io.
Note: You must use this feature to support NFC capabilities for both devices.
1. Under the Standby page, click "Application".
2. Click "Set".
3. Slide up the screen and choose NFC and pay.
4. Click "NFC".
5. Click on the slider on the right side of "off" to show that the "on" representative is open. (The mobile phone also needs to turn on this feature)
6. Click on "
Mouse clicks the shortcut does not respond, the screen, the Ghost system version has the question to fix the method?
Apply to: Mouse Click Shortcut no response, multiple opener screen, Ghost system version has problems
Download software windows_repair_3.1, enter directory execution repair_windows.exe, click Repair Tag, point open Repair.
is a wizard-style interface, which has Step1, STEP2 and other steps. In fact, we just need to select the "Start Repairs" interface, and then
Content Provider: A component that must be placed under the application's main package or the child package of the application;
The configuration of the component needs to be configured in the manifest file, and the content provider needs to be configured in the application node;The role of the content provider in the application is to share data externally ( any type of data ), and other programs can crud the data, such as the Address Book;If the file is used to share data externally, because
Viewpager This small demo is to be able to loop around the picture, the following index, slide to the last page in the right slide will be the first page, the first page to the left slide to the last page, first on the effect of the picture:
1, first look at some layout under the XML
Use Viewpager first need to introduce Android-support-v4.jar this jar package, don't forget to add
A lot of times we're sensitive. Google follows a large number of MVC architectures when designing Android, allowing it to be independent of writing public code, artwork, and concrete logic developers. How do you implement a formatted string in the Android resource file Values/strings.xml? Here's a simple example of Android123, and where you might end up using it.
Copy Code code as follows:
After android2.3, the Android system provides a system component that can be used by other app apps to download things that are easy to use.
For example, we can download the new version of the app apk while registering a broadcast receiver to receive the broadcast from Downloadmanager when the download is complete, and then automatically install the program.
The SDK joins the Downloadmanager service in AP
First of all, if you add Guice and Roboguice libraries to your project.
Download Roboguice and Guice-2.0-no_aop.jar (not guice-3.0), or download
Create a new Android project, such as Guicedemo, the target platform Android1.5 above.
In general, you can add a Lib directory under the project, copy two jar files to the Lib directory, and then pass: Project > Properties > Java build Path > Libraries > Add External J ARs
After adding references to the
Development of any program is inseparableUnit TestTo ensure its robustness and stability.AndroidThe program is no exception. A mature testing framework has been available since Android SDK 0.9. However, no detailed documentation has been provided for the latest version 1.1, I simply gave several unit test codes in the API demos. Therefore, I will sort out and summarize the content here:
JUnitCan it be used?
InJavaThe unit test will inevitably
Use of Animations in android Development (2)
Use of Animations in android Development (2)
This blog post focuses on the use of animation effects in android development. Unlike the previous blog post, the four animation effects are
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.