Title: @DebugView annotation to enable HierarchyView using ViewServer · Issue #169 · androidannotations/androidannotations · GitHub
Open Graph Title: @DebugView annotation to enable HierarchyView using ViewServer · Issue #169 · androidannotations/androidannotations
X Title: @DebugView annotation to enable HierarchyView using ViewServer · Issue #169 · androidannotations/androidannotations
Description: @romainguy recently told me about ViewServer, a utility class he open sourced, which can be used to enable HierarchyViewer on your apps even if you don't have a rooted / engineer build phone. The source is here: https://github.com/romain...
Open Graph Description: @romainguy recently told me about ViewServer, a utility class he open sourced, which can be used to enable HierarchyViewer on your apps even if you don't have a rooted / engineer build phone. The s...
X Description: @romainguy recently told me about ViewServer, a utility class he open sourced, which can be used to enable HierarchyViewer on your apps even if you don't have a rooted / engineer build phone. T...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/169
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@DebugView annotation to enable HierarchyView using ViewServer","articleBody":"@romainguy recently told me about `ViewServer`, a utility class he open sourced, which can be used to enable HierarchyViewer on your apps even if you don't have a rooted / engineer build phone.\n\nThe source is here: https://github.com/romainguy/ViewServer/tree/master/src/com/android/debug/hv\n\nI think it could be nice to bake such a feature into AndroidAnnotations using a specific annotation (such as `@DebugView`), e.g. :\n\n``` java\n@DebugView\n@EActivity\npublic class MyActivity extends Activity {\n\n}\n```\n\nThis would automatically enable the ViewServer on the activity, ie doing this :\n\n``` java\n @Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // Set content view, etc.\n ViewServer.get(this).addWindow(this);\n }\n\n @Override\n public void onDestroy() {\n super.onDestroy();\n ViewServer.get(this).removeWindow(this);\n }\n\n @Override\n public void onResume() {\n super.onResume();\n ViewServer.get(this).setFocusedWindow(this);\n }\n```\n\nAlso note that `android:debuggable` must be set to true in the `AndroidManifest.xml` for the `ViewServer` to work. \n\nShould we issue a compile warning on a `ViewServer` annotation if `android:debuggable` is false ?\n","author":{"url":"https://github.com/pyricau","@type":"Person","name":"pyricau"},"datePublished":"2012-04-21T08:00:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/169/androidannotations/issues/169"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:527117b9-ab9b-6845-081c-af6b20db562d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6AE:2B1453:11BEF1C:1846455:6A61B355 |
| html-safe-nonce | 3b3768dc0008593bc3a83f6dd2ec36076678bcda3d0aa954cb71d7670c28e4f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkFFOjJCMTQ1MzoxMUJFRjFDOjE4NDY0NTU6NkE2MUIzNTUiLCJ2aXNpdG9yX2lkIjoiNDQ3NjYwODQ2NTUyOTMyMDI3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 52821e14f9665218bf42d9cb2f8d185444b7a5aa9358e6c2eb92ce291189e2c8 |
| hovercard-subject-tag | issue:4222213 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/169/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dab693c853165b7cb14b6f83aa75fe2ce48eae1b20811d72d5521f7b3ab661f1/androidannotations/androidannotations/issues/169 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dab693c853165b7cb14b6f83aa75fe2ce48eae1b20811d72d5521f7b3ab661f1/androidannotations/androidannotations/issues/169 |
| og:image:alt | @romainguy recently told me about ViewServer, a utility class he open sourced, which can be used to enable HierarchyViewer on your apps even if you don't have a rooted / engineer build phone. The s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pyricau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width