Discover debugging app for android, include the articles, news, trends, analysis and practical advice about debugging app for android on alibabacloud.com
From:Http://source.android.com/devices/tech/debug/index.htmlThis page contains a summary of useful tools and related commands for debugging, tracing, and profiling native Android pla Tform code. The pages within this section contain detailed information on other debugging tools for use during development of platform -level features.For example, the learn how to e
Start b.apk with a.apk, and B's icon is not visible on the phone's main screen.First, a new A, B two Android project (new HelloWorld project similar), in a project to increase the Click event (Launch button to launch the B app).Second, in the B application To modify the B manifest. xml XML version= "1.0" encoding= "Utf-8"?>Manifestxmlns:android= "Http://schemas.android.com/apk/res/
keys
• Mouse: Alt + mouse button click on breakpoint
(Attachment Debugging) Attach Debugger
Before I knew it, I was debugging a program that would always need to click Debug mode, then let the program run again, and then put up with a fairly slow startup process until I encountered this pattern.
In this mode, you do not need to restart the app, direct click,
the following command in android/out/target/product/generic:
Emulator-image system. img-data userdata. img-ramdisk. imgThen use this command to pass the compiled apk file to the simulator:
Adb install-r/home/xxx/android/out/target/product/generic/system/app/***. apkHere, we can basically implement the entire process of modifying and
Feature brief: Provide an app download platform, similar to AppStore, there are many apps available for downloadTo achieve the basic idea: the use of Android, the phone desktop to create an icon, click on the icon is not open the app, but instead jump to a Web page, this Web page is deployed on the Sina SAE server, APK resources are stored on the Sina SAE server,
14th Lesson for Joshui teacherOne, log log outputlog.v (tag,message); Verbose mode, print the most detailed logLOG.D (Tag,message); Debug-level logsLOG.I (Tag,message); Log at info levelLOG.W (Tag,message); Warn-level logsLOG.E (Tag,message); Log at error leveltag is used to mark the source of the log message with represented. Message is the contents of this log.Two, Unit test Step1: Add the following configuration information in Androidmanifest.xml: step2 Writing Unit test codea better approach
The 14th lesson of the corresponding Joshui teacherOne, log log outputlog.v (tag,message); Verbose mode, print the most specific logLOG.D (Tag,message); Debug-level logsLOG.I (Tag,message); Log at info levelLOG.W (Tag,message); Warn-level logsLOG.E (Tag,message); Log at error leveltag is used to mark the source of the log message with represented. Message is the contents of this log.Two, Unit test Step1: Add the following configuration information to the Androidmanifest.xml: step2 write unit tes
Speaking of Android phone, most people's impression is a bit of time to become a little lag, some programs in the run inexplicably crashes, open the System folder A look, found a lot of files, and then use the mobile phone butler APP constantly clean optimization, just feel the speed slightly improved point, Even if the mobile phone in a variety of performance in front of the software score ahead, or feel n
to be mapped from the APK to memory.15. Analyze Your RAM usageAnalyze Your Memory usageOnce achieve a relatively stable build, begin analyzing how much RAM your app is using throughout all stages of its Li Fecycle. For information on how to analyze your app, read investigating your RAM Usage.For more information, see investigating Your RAM Usage https://developer.android.com/tools/
Android Technology Point notes-(Install app and uninstall app broadcast)Summary: Summarize the broadcast usage of apps installed and uninstalled in Android.On Android, the installation and uninstallation will send out the corresponding broadcasts, and the system will broadcast Android.intent.action.PACKAGE_ADDED after
Objective
As Android developers, presumably more or less to touch the start speed optimization related things, when the user more and more, the product function with more and more iterations, the App gradually become bloated is a very common phenomenon, even can be said to be unavoidable phenomenon, followed by the work is to optimize the performance of the app,
Supports thawing and freezing apps
Support to hide specified app in the app list
Support detection system core app to prevent delayed freezing causing cell phone to become brick
Support Cleanup App Cache
Support Force Stop App
APK file is only 47KB
Personal
. Let's talk about the entire process first.For example, I modified the system's English input method, which is located in android/packagesAfter modification, run the command directly in the android directory. Specify the directory containing the Android. mk file:
Mmm packages/imputmethods/LatinIME/Compilation will be completed soon(Do not directly execute "mmm"
bitmapsWhen you load a bitmap, you just need to keep the data that fits the current screen device resolution, and if the original is higher than your device resolution, you need to do a smaller action. Keep in mind that increasing the size of the bitmap will increase the memory by 2, because both X and Y are increasing.
Note: in Android 2.3.x (API level 10) and below, the bitmap object's pixel data is stored in native memory, which is not ea
Http://itindex.net/blog/2014/11/07/1415353560000.htmlClick the URL link in your browser to launch a specific app.First make the HTML page, the page content format is as follows:This sentence will be all right.The meanings of each item are as follows:Scheme: Identify the app that starts. ※ The following details are describedHost: Proper descriptionPath: The key※ required to pass the value is not also availableQuery: Get the value of key and Value※ no a
Originally was idle to have nothing to do, browse the blog, see the browser address to open the app's article,After attempting to do so, I find that the app icon is not displayed on the desktop.Just modify it in the code below. intent-filter> action android:name="Android.intent.action.MAIN" /> category android:name="Android.intent.category.LAUNCHER" /> data android:scheme="MyApp" android:host="Akm.app" And
in the values/directory describe multiple resources. For a file in this directory, each child of the element defines a single resource. For example, the A element creates an R.string resource and a element creates an R.color resource.Because each resource are defined with their own XML element, you can name the file whatever you want and place different res Ource types in one file. However, for clarity, your might want to place unique resource types in different files. For example, here is s
Generally, the Android app has a welcome interface when it is started, similar to the QQHD startup interface. Elegant and elegant. The heart is not as good as action, and you have time to achieve similar effects.It is easy to observe and find that the welcome page of QQHD is full screen. The following describes how an Android
Speaking of Android phone, most people's impression is a bit of time to become a little lag, some programs in the run inexplicably crashes, open the System folder A look, found a lot of files, and then use the mobile phone butler APP constantly clean optimization, just feel the speed slightly improved point, Even if the mobile phone in a variety of performance in front of the software score ahead, or feel n
commands, Here's an example:ADB push Foo.txt/sdcard/foo.txtQuery log adb logcatStopping the ADB ServerIn some cases, you may need to stop the Android debugging system from running and then restart it. For example, if the Android debugging system does not respond to commands, you can terminate the server and then resta
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.