How can I use Layout Inspector for apps installed from Google Play?












1















I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones.










share|improve this question


















  • 4





    Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

    – CommonsWare
    Jun 3 '18 at 17:16











  • I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

    – Sunil
    Jun 3 '18 at 17:25











  • None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

    – CommonsWare
    Jun 3 '18 at 17:51
















1















I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones.










share|improve this question


















  • 4





    Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

    – CommonsWare
    Jun 3 '18 at 17:16











  • I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

    – Sunil
    Jun 3 '18 at 17:25











  • None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

    – CommonsWare
    Jun 3 '18 at 17:51














1












1








1








I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones.










share|improve this question














I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones.







android layout layout-inspector






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 3 '18 at 17:14









SunilSunil

129113




129113








  • 4





    Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

    – CommonsWare
    Jun 3 '18 at 17:16











  • I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

    – Sunil
    Jun 3 '18 at 17:25











  • None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

    – CommonsWare
    Jun 3 '18 at 17:51














  • 4





    Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

    – CommonsWare
    Jun 3 '18 at 17:16











  • I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

    – Sunil
    Jun 3 '18 at 17:25











  • None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

    – CommonsWare
    Jun 3 '18 at 17:51








4




4





Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

– CommonsWare
Jun 3 '18 at 17:16





Layout Inspector is only for debuggable apps. Use uiautomatorviewer for arbitrary apps.

– CommonsWare
Jun 3 '18 at 17:16













I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

– Sunil
Jun 3 '18 at 17:25





I need LayoutInspector/HierarchyViewer because I am trying to automate the listview from the current GUI. As far as I know, UIAutomator only gives me the elements that are currently being displayed in the screen but the hierarchy viewer gives me all the elements of the list so that I can scroll down to that specific element that I want. I'm trying to automate the GUI testing process. Any suggestions?

– Sunil
Jun 3 '18 at 17:25













None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

– CommonsWare
Jun 3 '18 at 17:51





None of these tools work in the way that you describe. All of these tools only show the views that are in the view hierarchy. So, for example, with a ListView or RecyclerView where you can scroll through 10000 items, there will not be 10000 child views, because ListView and RecyclerView recycle their rows. If you are automating GUI testing, you should be in contact with the developers of the app, and perhaps they can provide advice as to how best you should write your tests.

– CommonsWare
Jun 3 '18 at 17:51












2 Answers
2






active

oldest

votes


















0














you ca go to the /Users/.../Library/Android/sdk/tools/monitor



enter image description here



and select dump view



enter image description here






share|improve this answer



















  • 1





    This requires eclipse to be installed

    – Syakur Rahman
    Dec 9 '18 at 4:51



















-1














To open the Layout Inspector, you have to do the following:




  1. Run your app on a connected device or emulator.

  2. Click Tools > Layout Inspector.

  3. In the Choose Process dialog that appears, select the app process you want to inspect and click OK.


More Information Referance






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50668998%2fhow-can-i-use-layout-inspector-for-apps-installed-from-google-play%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    you ca go to the /Users/.../Library/Android/sdk/tools/monitor



    enter image description here



    and select dump view



    enter image description here






    share|improve this answer



















    • 1





      This requires eclipse to be installed

      – Syakur Rahman
      Dec 9 '18 at 4:51
















    0














    you ca go to the /Users/.../Library/Android/sdk/tools/monitor



    enter image description here



    and select dump view



    enter image description here






    share|improve this answer



















    • 1





      This requires eclipse to be installed

      – Syakur Rahman
      Dec 9 '18 at 4:51














    0












    0








    0







    you ca go to the /Users/.../Library/Android/sdk/tools/monitor



    enter image description here



    and select dump view



    enter image description here






    share|improve this answer













    you ca go to the /Users/.../Library/Android/sdk/tools/monitor



    enter image description here



    and select dump view



    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 20 '18 at 11:08









    Rasoul MiriRasoul Miri

    1,6181425




    1,6181425








    • 1





      This requires eclipse to be installed

      – Syakur Rahman
      Dec 9 '18 at 4:51














    • 1





      This requires eclipse to be installed

      – Syakur Rahman
      Dec 9 '18 at 4:51








    1




    1





    This requires eclipse to be installed

    – Syakur Rahman
    Dec 9 '18 at 4:51





    This requires eclipse to be installed

    – Syakur Rahman
    Dec 9 '18 at 4:51













    -1














    To open the Layout Inspector, you have to do the following:




    1. Run your app on a connected device or emulator.

    2. Click Tools > Layout Inspector.

    3. In the Choose Process dialog that appears, select the app process you want to inspect and click OK.


    More Information Referance






    share|improve this answer




























      -1














      To open the Layout Inspector, you have to do the following:




      1. Run your app on a connected device or emulator.

      2. Click Tools > Layout Inspector.

      3. In the Choose Process dialog that appears, select the app process you want to inspect and click OK.


      More Information Referance






      share|improve this answer


























        -1












        -1








        -1







        To open the Layout Inspector, you have to do the following:




        1. Run your app on a connected device or emulator.

        2. Click Tools > Layout Inspector.

        3. In the Choose Process dialog that appears, select the app process you want to inspect and click OK.


        More Information Referance






        share|improve this answer













        To open the Layout Inspector, you have to do the following:




        1. Run your app on a connected device or emulator.

        2. Click Tools > Layout Inspector.

        3. In the Choose Process dialog that appears, select the app process you want to inspect and click OK.


        More Information Referance







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 3 '18 at 17:20









        Hasib AkterHasib Akter

        3,8851526




        3,8851526






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50668998%2fhow-can-i-use-layout-inspector-for-apps-installed-from-google-play%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            The term 'EXEC' is not recognized as the name of a cmdlet Powershell

            NPM command prompt closes immediately [closed]

            Error binding properties and functions in emscripten