the first picture will appear.
The first approach is relatively simple, but the scope of the test is broad and the second is relatively accurate, but I prefer to use the first one, because it is simple, and it is a measure of your operation . Because the second is more suitable to detect the performance of a particular method, there is no such good, look at the use of scenes and preferences ...Read the indicators in TraceView In fact, I started using the TraceView
the front-end applications
Make sure that the service life cycle is short, because each process requires 2 MB of memory, and the front-end program restarts when the memory is required;
Keep the memory usage not too large;
If you want to update the application every 30 minutes, perform this operation when the device is in the wake-up status;
The Service status in pull or sleep is poor, Which is why AlarmManager or the attribute stopSelf () should be used at the end of the Service.
Recommend
Use the Dumpsys tool to view activity-related informationADB shell Dumpsys activity > 1.log//Save relevant information to 1.logADB Shell Dumpsys Activity | grep "Running Activities"-A 7//-a 7 indicates that matching rows and 7 rows of data are displayedView Help: adb shell Dumpsys activity-hThe first one is the activity name of the current interface. ↓↓↓↓↓↓↓↓Dumpsys There are other parametersReference:1, http://riusksk.blogbus.com/logs/272125296.html2
Android obtains the App version number and version name.
// The following is a tool for obtaining version information:
// Version name public static String getVersionName (Context context) {return getPackageInfo (context ). versionName;} // version public static int getVersionCode (Context context) {return getPackageInfo (context ). versionCode;} private static
Share pictures and text to friends in the Android app
You need to add the permission to read and write sdcard to the configuration file.
Using UnityEngine; using System. collections; using System. IO; public class Share: MonoBehaviour {public static string imagePath; static AndroidJavaClass extends pluginclass; static AndroidJavaClass unityPlayer; static AndroidJavaObject currActivity; private static
The mobile app that you encounter or are using
1. Mount paragon NTFS HFS + v1.9 in NTFS format. The SD card mounting and unloading Tool
2. usb otg Cable
Why is there a four-wire USB cable? You guessed it. It is used to tell the device that supports OTG to be configured as the master device or from the device, such as the ID line. When the connection is established, the mobile phone connected to this end
-party components, publish advertising revenue and so on. A series of work, I think all developers want to see the content, the author sacrificed his spare time to do such a thing, is very happy to get everyone's attention and support, in order to be worthy of attention to everyone, in order to spread sincerity, sharing, win the faith, to do these things is worth, the embodiment of value is the driving force of creation. The final project has been open source, you can go to the author's github d
If you do not have eclipse installed with the ADT plug-in, you can use the command line tool to create a project:
Switch directory to Android SDKTools/Directory.
Run:Android list targetsThe console will display a list of available Android platforms that you have downloaded for the SDK. Find your target platform. Remember its ID. We recommend that you use th
call Debug. stopMethodTracing () in onStop (). In this way, when we switch to another activity or click the home Key, onStop () will be called, and we can get the complete trace file.3. Do not forget to add the permission to access the SD card.
4. Use the tool trace view in tools to open the. trace file.
The first method is relatively simple, but the test scope is very broad. The second method is relatively accurate. However, I personally prefer the
this step requires root access, which requires a reboot before the connection can take effect. Step Two: Download using Cydia substrate library (directly to the official website to download). Once the download is complete, all the files (many jar packages and so libraries) will be copied to the Libs folder under the Android project and can be used directly. The substrate.h header file and the so file under the Lib folder are provided in the function
Preface: Writing code inevitably has a bug, usually in addition to the most direct debugging method is debug;when a bug occurs in our program, debugging can quickly find the bug. into the debug state, we can clearly understand the entire process of execution of the program, memory data can be monitored. Here is a brief summary of the basic use of debugging and some debugging techniques. This article is by looking for the online multi-resource collation,If there is a fallacy, please point out, I
again, that is problematic! Indicates that an object in the activity class has been holding the activity instance without releasing it, so it is time to check the code in the activity!The above is Strictmode console information, so how to use the mat tool?Then go to the DDMS management interface,, find the device, open the Debug app, and in the thread of the heart, find the corresponding
the APK was exported.—— - - - ——- - - —— - - - -- -—— —— —— - -—— - —— - -—— --—— -The following is reproduced:Issue: When we develop an Android application, we must package the application before publishing the application.As for the complete process from package to release, refer to: Android App Publishing Process---bowl POD release processThe process for sele
application, (root) Uninstall the application, determine whether the system application, such as:Install the app (Context, String), install silently if it is a system application or root, otherwise install normallyUninstall (Context, String) Uninstall the application, if it is a system application or has root, then silently uninstall, otherwise general uninstallIssystemapplication (Context, String) to determine if the application is a system applicat
What is Beeframework?Beeframework Android provides an app DEMO based on the MVC development model for Android Junior developers and provides an in-app debugging tool, including
View Network data Request History
Crash Log List
Simulated 2G\3G network in real-
Android App Stress testThe first part of the background1. Why stress tests are carried out?2. When do stress tests start?Part Two theory1. Manual Test Scenario2. Automated test creation3. Monkey Tools4. ADB command5. Monkey Script6. Monkey Runner7. Stress test Results Analysis1. What is crash? (Crash Ben Collapse)2. What is ANR? (No response)Part III Practice1. Stress test practice for an app2. Application
source code of the jar file;5. After the download is complete, unzip the package and put it in the directory you wish to store, such as ' D:\Work\jd-gui ';At this point, the Java Source Anti-compilation tool is installed and setup is complete. If you do not have access to the official website, please download it on [Http://anddle.com/resource], where the tools are packaged to make it easy for everyone to use. # # #2.3.2 decompile The code then starts
Use ionic to compile HTML5 in winndows environment to Android (Network is best to visit foreign websites) 1. Prepare Android Operating Environment (Baidu) Configure path=d:\mysoftware\ adt-bundle-windows-x86_64-20140321\sdk\platform-tools; D:\mysoftware\adt-bundle-windows-x86_64-20140321\sdk\tools 2. Install node. JS (node. JS is a tool that installs after insta
Reference article: Heap Viewer
What can the Heap viewer do?
Real-time view of the app's allocated memory size and free memory size
Discover the memory Leaks
Heap Viewer conditions of Use
More than 5.0 of the system, including 5.0
Developer options available
Heap Viewer StartupYou can directly click on the small robot launcher directly in the Android Studio toolbar:You can also have tools in the menu bar of
Android Performance Test--heap Viewer toolWhat can the Heap viewer do?
Real-time view of the app's allocated memory size and free memory size
Discover the memory Leaks
Heap Viewer conditions of Use
More than 5.0 of the system, including 5.0
Developer options available
Heap Viewer StartupYou can directly click on the small robot launcher directly in the Android Studio tool
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.