[英]how do i check the flow of Android Tv or full built Android App that is being used as Product
We have an app that is used as product means that we customize the main app and depoly it according to client needs.我们有一个用作产品的应用程序意味着我们自定义主应用程序并根据客户需求对其进行部署。 It is a fully built product/ App i need to understand the flow of it.
这是一个完全构建的产品/应用程序,我需要了解它的流程。
I started with checking Android Mainifest and then start checking Activities and their functions我开始检查 Android Mainifest,然后开始检查活动及其功能
Not sure what is your question, but I will try to answer with few possible ways.不确定你的问题是什么,但我会尝试用几种可能的方式回答。
Full build flow You can run "Rebuild Project" and your "Build" tab will display a full list of gradle tasks being run:完整构建流程您可以运行“重建项目”,您的“构建”选项卡将显示正在运行的 gradle 任务的完整列表:
You have mentioned Android TV in the question title, so I assume you might have two modules (app and tv) and you wonder how they interact with each other.您在问题标题中提到了 Android 电视,所以我假设您可能有两个模块(应用程序和电视)并且您想知道它们如何相互交互。 By default they do not.
默认情况下他们没有。 But if they would, you could see it in the build.gradle (at the module level) under dependencies.
但如果他们愿意,您可以在依赖项下的 build.gradle(在模块级别)中看到它。 Otherwise, one does not run thecode of the other.
否则,一个不运行另一个的代码。
Android Profiler You could use the profiler tool to diagnose which methods are being run when the app is running, just head to "Profiler" tool, click on CPU, then Select CPU Profiling mode as "Trace Java/Kotlin Method Trace", click "Record" and when you are done click "Stop". Android Profiler 您可以使用profiler工具来诊断应用程序运行时正在运行哪些方法,只需前往“Profiler”工具,点击CPU,然后Select CPU Profiling模式为“Trace Java/Kotlin Method Trace”,点击“录制”,完成后单击“停止”。 Investigate from here.
从这里调查。
At the start your Application class will be run (if you have extended the default one), then it runs the activity that has intent-filter set as main launcher in the AndroidManifest.xml file.一开始,您的应用程序 class 将运行(如果您扩展了默认应用程序),然后它将运行在 AndroidManifest.xml 文件中将 intent-filter 设置为主启动器的活动。 From here you can set debug breakpoints and run the app in the debug mode or insert code that will log into console.
从这里您可以设置调试断点并在调试模式下运行应用程序或插入将登录到控制台的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.