How can I use Layout Inspector for apps installed from Google Play?
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.
add a comment |
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.
4
Layout Inspector is only for debuggable apps. Useuiautomatorviewerfor 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 aListVieworRecyclerViewwhere you can scroll through 10000 items, there will not be 10000 child views, becauseListViewandRecyclerViewrecycle 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
add a comment |
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.
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.
asked Jun 3 '18 at 17:14
SunilSunil
129113
129113
4
Layout Inspector is only for debuggable apps. Useuiautomatorviewerfor 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 aListVieworRecyclerViewwhere you can scroll through 10000 items, there will not be 10000 child views, becauseListViewandRecyclerViewrecycle 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
add a comment |
4
Layout Inspector is only for debuggable apps. Useuiautomatorviewerfor 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 aListVieworRecyclerViewwhere you can scroll through 10000 items, there will not be 10000 child views, becauseListViewandRecyclerViewrecycle 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
add a comment |
2 Answers
2
active
oldest
votes
you ca go to the /Users/.../Library/Android/sdk/tools/monitor

and select dump view

1
This requires eclipse to be installed
– Syakur Rahman
Dec 9 '18 at 4:51
add a comment |
To open the Layout Inspector, you have to do the following:
- Run your app on a connected device or emulator.
- Click
Tools > Layout Inspector. - In the Choose Process dialog that appears, select the app process you want to inspect and click OK.
More Information Referance
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
you ca go to the /Users/.../Library/Android/sdk/tools/monitor

and select dump view

1
This requires eclipse to be installed
– Syakur Rahman
Dec 9 '18 at 4:51
add a comment |
you ca go to the /Users/.../Library/Android/sdk/tools/monitor

and select dump view

1
This requires eclipse to be installed
– Syakur Rahman
Dec 9 '18 at 4:51
add a comment |
you ca go to the /Users/.../Library/Android/sdk/tools/monitor

and select dump view

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

and select dump view

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
add a comment |
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
add a comment |
To open the Layout Inspector, you have to do the following:
- Run your app on a connected device or emulator.
- Click
Tools > Layout Inspector. - In the Choose Process dialog that appears, select the app process you want to inspect and click OK.
More Information Referance
add a comment |
To open the Layout Inspector, you have to do the following:
- Run your app on a connected device or emulator.
- Click
Tools > Layout Inspector. - In the Choose Process dialog that appears, select the app process you want to inspect and click OK.
More Information Referance
add a comment |
To open the Layout Inspector, you have to do the following:
- Run your app on a connected device or emulator.
- Click
Tools > Layout Inspector. - In the Choose Process dialog that appears, select the app process you want to inspect and click OK.
More Information Referance
To open the Layout Inspector, you have to do the following:
- Run your app on a connected device or emulator.
- Click
Tools > Layout Inspector. - In the Choose Process dialog that appears, select the app process you want to inspect and click OK.
More Information Referance
answered Jun 3 '18 at 17:20
Hasib AkterHasib Akter
3,8851526
3,8851526
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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

4
Layout Inspector is only for debuggable apps. Use
uiautomatorviewerfor 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
ListVieworRecyclerViewwhere you can scroll through 10000 items, there will not be 10000 child views, becauseListViewandRecyclerViewrecycle 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