called and completed.
OnStart () Fragment UI is visible when called
Onresume () Fragment UI can be called interactively when
OnPause () Fragment called when visible but not interactive
OnStop () Fragment called when it is completely invisible
Ondestroyview () Fragment called when the view is removed (called when the layout is removed) when the call is finished, it enters the stop state.
OnDestroy () call when cleaning up the view resource
Ondetach () Called when fragmentation is a
Statistics and testing of seven threads and servers in the Android RakNet SeriesIntroduction
A thread is a single sequential control flow in a program. A relatively independent and schedulable execution unit in a process is the basic unit for Independent System Scheduling and CPU allocation, which refers to the scheduling unit of the running program. It is called multithreading.
The thread is re-encapsulate
GT (Carry-on) is the app's carry-on platform, it is directly running on the phone "Integrated commissioning Environment" (Idte, Integrated Debug Environment). With the GT, you can quickly test your app (CPU, memory, traffic, power, frame rate/smoothness, etc.) with a mobile phone and no need to connect to your computer, view your development logs, crash log views, crawl network packets, debug your app's internal parameters, and count your real-time code. If you feel that the GT does not provide
The Android test framework also provides support for service testing, the basic class being servicetestcase, because the service class usually assumes that it is used separately from the client, so you don't have to use the instrumentation To test the service.
When you design a service, you should consider how to check the current state of the service in a test case, such as when you start a service in OnC
Problem one: The test on the real machine, adb shell execution sqlite3 access to the database/system/bin/sh:sqlite3:not found, the original phone system does not have sqlite3 files, need to download online: is the download sqlite3, If it is android4.1 above you need to download sqlite3_4.11) mount the/system directory as writable>ADB shell# mount-o remount,rw-t Yaffs2/dev/block/mtdblock3/system2) Download Sqlite3, if it is more than android4.1 need to download sqlite3_4.1, or create a simulator,
Yesterday I also just summarized an article on unit testing in my blog. Who knows that I encountered a problem when I wrote a unit test this afternoon and had to solve it until now.
The following problem is always prompted during unit test execution:
The connection to ADB is down, and a severe error has occured.
...
Test launch failed: cocould not connect ::
Connect to eclipse test result listener failed
Before this problem, I had a problem beca
I. First, configure the most basic environment
Knowledge preparation + Environment configuration for Android Automated Testing(Click to view details)
2. Download robotium
Open: http://code.google.com/p/robotium/
Download: robotium-solo-3.4.1.jar (dependent on this package when writing test cases) robotium-solo-3.4.1-javadoc.jar (you can view the various APIs provided after decompression)
3. Create a test pr
I just read the android API and found this thing. It feels good. To remember it, write a blog so that you can use it easily in the future. Monkey isProgramSimulate operations by generating a large number of pseudo-random system-level user event streams, including click, touch, and gesture. In this way, stress testing is performed for developing applications through random responses.
Simplest to useMonkeyT
example, 0:15.0%, which represents the allocation of--pct-touch event 15%. Test 100 Allocations 15 times test down-up.2. Percent controlIf the above parameters are not specified in the monkey parameter, these actions are randomly assigned, and the sum of each of the 9 actions is assigned as a percentage of 100%, we can control the percentage of each event by adding a command option, which allows the operation to be limited to a certain extent.Let's take a look at the non-action percent control,
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.