When downloading files based on Android, update the simple help class of UI and androidui
Due to this simple requirement during project development, Google also has many Utils tool classes on the Internet, but they are relatively redundant. I wrote a simple help class.
/*** Download the file and update the simple UI
Update the simple help class of the UI when downloading files based on Android
Due to this simple requirement during project development, Google also has many Utils tool classes on the Internet, but they are relatively redundant. I wrote a simple help class.
/*** Download the file and update the simple UI help class *
There are a lot of ways to improve the performance of the UI in the actual development has been used, here to summarize.1. Reduce the blocking time of the main threadIf an operation takes a long time (more than 5 seconds), we should put it in a background thread and only notify the main thread to modify it when we need to modify the UI interface. Android has prov
We have a headache in the absence of app development: a button to change the color of the past, or it is very difficult to see, eventually only temporarily abandoned, wasting a lot of development time and energy.Development specification Chapter see Android Development How to make their app UI beautiful, generous (specification article one)First, the app commonly used with referenceBottom background color,
Optimize the layout hierarchy 1. Avoid layout tessellation too deep (see below)"Http://schemas.android.com/apk/res/android"xmlns:tools="Http://schemas.android.com/tools"Android:layout_width="Match_parent"android:layout_height="Match_parent"tools:context=". Mainactivity "> "@+id/main_ll_duoyu"Android:layout_width="Match_parent"android:layout_height="Match_parent"> "@string/hello_world"Android:layout_width="Wrap_content"android:layout_height="Wrap_conte
There are many useful tools in the Android SDK Kit to help programmers develop and test Android apps, and improve their productivity dramatically. One of the visual debugging tools called Hierachy Viewer can easily help developers analyze, design, debug and adjust UI interfaces to improve development efficiency. This article will be a practical example of how to
Monkey stress testADB-D shell monkey-p your. Package. Name-V 6000
1. What is monkey?
Monkey is a command line tool in Android and can be run in a simulator or on a real device. It sends a pseudo-random user event stream (such as key input, touch screen input, and gesture input) to the system to perform stress testing on the application being developed. Monkey testing is a fast and effective method to test t
Espresso is a new tool, and the API is more accurate relative to other tools. and smaller, simpler and easier to learn. It was originally launched at the 2013 Gtac Convention, with the goal of getting developers to write more concise UI test code for the app.
Although it is for developers (Developer), it is also available for testers. Because it has some key features that Robotiun and selendroid lack.
Key
Preface:
Recently, I started to study Android automated testing methods, and made some simple arrangements for some of the tools, methods, and frameworks, this includes the android testing framework, CTS, Monkey, Monkeyrunner, benchmark, and other test tools. Due to the short contact time and shortcomings in many places, I hope to have more exchanges with you.
1. What is Monkey?
Monkey is a command line
ManagerThis Android development tool contains many important features, including managing different versions of the Android SDK (build target), you know that there are many versions of Android, and there are some compatibility issues on the API. The tool is also used to man
hotspot is found, the developer will need to combine the code to make the corresponding optimizations. For Java code optimization, readers can refer to the following information: http://developer.android.com/training/articles/perf-tips.htmlIn general, hotspot lookup is a meticulous work that requires developers to be familiar with the code of the target program, as well as the TraceView tools.Summary of 1.3 TraceViewTraceView tools are a powerful tool
Android--android Lint Tool Project resource cleanup
Recently maintained projects for more than two years, through the iterations of many predecessors, the project has not become robust, and become very bloated. The Android Lint tool cleans it up once, clearing out a lot of
Now take a look at the entire interface diagram, the entire interface consists of two parts, the above is the process you test the execution of each thread, each line Chengjian line; The following is the value of each indicator executed by each methodThe above section is the timeline where each thread in your test process runs, and you can see that there is only one main thread executing, because I slipped the list, and the main thread (the UI thread)
area is full after a long-lived object (the object survived after multiple Minor GC).Before Android 2.2, when the GC was executed, the thread of the app was paused and 2.3 began to add a concurrent garbage collection mechanism.Permanent GenerationStorage method area. General Storage:
Information for the class to load
static variables
Final constant
Properties, method information
fpsHere is a simple introduction to the concep
Android test Appium, Robotium, monkey and other frameworks or tool comparisons1. Appium Test (functional test, user acceptance test, black box test)-Rating:8The Appium test is equivalent to a black box test. Just test UI logic correctness. So the Appium test framework provides limited methods. Gets a Appiumdriver object. The object just has a lot of findelements(
Android tool-annotations,-annotations
Currently, annotations are widely used in java to improve development efficiency. In android, it mainly helps developers process front and back-end tasks, rest services, application classes, code snippets, and so on, so that developers can focus on what really matters.
(1) how to use andr
also the set up customized Intents and start a activity with them. (translation is not very good, probably said to rely on injection to produce simulation objects and then simulate the system environment.) )
Controls the control element of the UI and then produces a touch event. This function is similar to that described by Appium.2) Service testing test is the service life cycle is normal3) Content Povider testiing because provider is a data e
Transferred from: http://my.oschina.net/xuwa/blog/1574 The Android Debug Bridge (ADB) is a versatile tool that can help you manage the state of your device or emulator. You can join ADB in the following ways:
Run the shell command on the device
To manage the emulator or device via port forwarding
Copy or copy files from a simulator or device
The following is an introduction to ADB an
time.SummarizeTraceView is a very powerful performance analysis tool, because the Android official website on the use of this tool is very few documents, and some Chinese blog is also written to copy, did not say how to use. Recently I was doing this aspect of performance analysis, slowly pondering the use of such tools, found very powerful, write down to summar
Android debugging Bridge
Http://www.androidin.com/docs/reference/adb.html#sqlite
Android debugging bridge (ADB) is a versatile tool that helps you manage the status of devices or simulators.
You can add ADB using the following methods:
Run shell commands on the device
Manage simulators or devices through port forwarding
Copy files from simulators or devices
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.