简体   繁体   English

我如何检查 Android 电视或完整构建的 Android 用作产品的应用程序的流量

[英]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.不确定你的问题是什么,但我会尝试用几种可能的方式回答。

  1. Full build flow You can run "Rebuild Project" and your "Build" tab will display a full list of gradle tasks being run:完整构建流程您可以运行“重建项目”,您的“构建”选项卡将显示正在运行的 gradle 任务的完整列表: 重建流程

  2. 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.否则,一个不运行另一个的代码。

依赖关系 模块

  1. 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.从这里调查。 在此处输入图像描述

  2. 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.

相关问题 在Android中,如何检查Web视图中加载的URL是否为图像? - In Android, how do I check if the URL being loaded in a webview is an image? 检查 Android 电视盒 - Check for Android TV box 如何检查是否正在打开应用-Android Studio - How to check if an app is being opened - Android Studio 如何在Android Studio中轻松检查方法是否属于内置类或用户定义的类? - How do i check if a method belongs to built in or user defined class easily in android studio? 如何将我的Android应用程序链接到另一个内置应用程序(例如Google Maps)? - How do i link my android app to another built in application like google maps? Android开发:如何在不使用应用程序时运行线程 - Android Development: How can I run a thread while the app is not being used Android Studio 如何在使用导航视图时将数据从片段传递到片段? - Android Studio How do I pass data from fragment to fragment when a navigation view is being used? 如何在 Android 电视上以编程方式更改电视频道 - How to change TV channels programmatically on Android TV 如何检查应用程序是否在 Android 上运行? - How can I check if an app running on Android? Android Eclipse测试项目不能与在Android构建树中构建的项目一起使用 - Android Eclipse test projects cannot be used with a project being built in an Android build tree
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM