Android: How do you capture a screenshot of your own app programatically -


i know need root access if want capture screenshot using background application. possible grab screen content of current visible activity owned process? not seem security constraint since user has installed app using app. if how work?

the thing can imagine work (not tested) instance of root layout node , manually call draw(canvas) own canvas instantiated empty bitmap , save bitmap. sounds lot of work thing can think of @ moment.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -