How to use show layout bounds functionality in my app in android studio?

337 Views Asked by At

So I am trying to create a project in which I have one activity with two buttons to start & stop my custom background service of the same app.

All I want in this service is to "show layout bounds" of all layout. To be more specific I want my background service to enable the show layout bounds option of developer options. How can I achieve this? I'm new to android but I guess that "show layout bounds" is a system service in the settings app. Now I want to use the same service in my app. Is it possible? For example, we can use the

getSystemService(WIFI_P2P_SERVICE)

and use the WiFi direct in our app. Can we do something like this to use the "show layout bounds" service?

Summing up : How can I use "show layout bounds" from developer options in my application?

Any references, ideas, links, appreciated.

0

There are 0 best solutions below