classify the log when the log is output in the code. I generally prefer to use the current class name as the tag of log.Pic is the process number where it is located. In the devices Subwindow, look at the online column, which is the PID number of each process.Log level does not explain much, the person who hits the log should understand.We tried to build a log filter. See system_process process PID, is 72,tag fill: activitymanager, such as: tools-010After clicking OK, the log we see is the log
);//deliver content for each update Try{thread.sleep (arg0[0]);//deferred execution}Catch(interruptedexception e) {//TODO auto-generated Catch blockE.printstacktrace (); } } return"Execution is complete!" "; }} @Override Public BooleanOncreateoptionsmenu (Menu menu) {//inflate the menu; This adds items to the action bar if it is present.getmenuinflater (). Inflate (R.menu.my_async_task_demo, menu); return true; } @Override Public Booleanonoptionsitemselected
Changle Network was established in 2014. Keymob Mobile ad aggregation platform is mainly for Android, iOS and other developers to provide advertising aggregation and management, cross-promotion, self-sales ads and other services. Help developers embed ads on multiple AD platforms and configure the display scale and priority of each mobile ad platform through Keymob.Domestic professional polymerization platform Keymob, has been serving the developer an
ADB stands for Android debug bridge ).I. Role of ADB
ADB is a multi-purpose tool used to manage simulators or devices.Ii. Composition
ADB is a C/S program. It contains three components: client, server, and deamon.
1. The client runs on our own computer. You can run the ADB command to start the client. Other Android tools, such as the ADT plug-in and ddms, can als
Debug Android Java source code
The back garden of the straw hat-Neo
Previously written: This article mainly focuses on debugging the Java source code. It should be said that it is the source code after system_process. This is a powerful tool for debugging and modifying the frameworks layer, but why is it still analyzed after system_process? If there is any result, I will update this article and try to debug
Special usage of Path in the image tool of Android custom ViewOverview:
There is nothing to say.Demo
Create a custom View
Public class MyPathView extends View {private int width; private int height; private Paint mPaint; private Path mPath; private Paint mPaintPoint; private Paint mPaintText; private boolean isAdd = true; public MyPathView (Context context) {super (context);} public MyPathView (Context cont
Since I started to use Android and Java, I have had many "amazing" contact with jvm and its gc mechanism. Many jvm gc implementations have different strategies. I personally know that, even the implementations of various Android mobile phone manufacturers (of course, strictly speaking, Android is not a JVM) are even different. What you encounter is really tearful
) {String type = Defval Ue.getclass (). Getsimplename (); Sharedpreferences sharedpreferences = PrefereNcemanager.getdefaultsharedpreferences (context); Defvalue is the default value, and if the data is not currently obtained, return it if ("Integer". Equals (Type)) {return Sharedpreferences.getint (key, Integ ER) defvalue); } else if ("Boolean". Equals (Type)) {return Sharedpreferences.getboolean (key, (Boolean) defvalue); } else if ("String". Equals (Type)) {return
This article mainly introduces 19 common Android tool categories. For more information, see the summary of commonly used tool classes in Android development. Most of them are also applicable to Java.
Currently, these include delimiter, delimiter, ShellUtils, delimiter, FileUtils, ResourceUtils, StringUtils, ParcelUtils
be used, it is worth mentioning that Sonar also supports deployment in Apache Tomcat application servers. In a Windows environment, start SOANR directly under Windows-x86-64\startsonar.bat in the Bin directory. And then access in the browser: http://localhost:9000/(Chinese will need to download the additional Chinese package):Documentation and some jar packages and plug-in installation click Run Analysis:First sign in to the configuration item:The default is: Admin,admin.After loginClick Provis
Android Network-related tool classesYou can use it if you stick it.Package com.activity;Import java.util.List;Import Android.content.Context;Import Android.location.LocationManager;Import Android.net.ConnectivityManager;Import Android.net.NetworkInfo;Import Android.telephony.TelephonyManager;/*** Network-related tool classes*/public class NetUtils {/*** Whether t
UI debugging when the programmer is a headache problem: sometimes 1DP, 2dp problems, get speechless (Android development deep Experience)Here is a common debugging tool in the actual development process, can be accurate to each view in the absolute position of the screen (accurate to the specific PX), with such a tool, you can well find the problem in the UI.In f
Believe that Android is the simplest way to store people are familiar with, but there is a small trick, perhaps you have not used, today to share with you, we can put sharedpreferences in a tool class, when we need to write data and read data, Can be directly through the tool class set and get method to complete, similar to JavaBean, so it is more convenient to u
When developing and customizing the Android system, it often discourages a lot of source code. To search for a keyword, using the IDE to build a project takes some time, we can use this tool to easily find the source content, to find the development ideas:Specify the filename suffix, location, and other parameters of the searchSpecify Search ContentSpecify Search FieldsSpecify field valuesSpecify additional
The previous Code has constructed an android source code library locally. Let's take a look at how the source code library is constructed.
All of this is based on the construction tool named repo. Go back to the initial command $ curl http://android.git.kernel.org/repo> ~ /Bin/RepoThis command downloads a script named repo from the website. It is actually a Python code segment. It is a bit interesting to l
?? Android performance optimization related to the development tools are many, here are the following six tools to do a simple introduction, mainly with the Android developer options, analysis of the specific time-consuming trace view, Layout complexity tool hierarchy view, application startup time, Memory, CPU, network analysis, static code checking
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
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.