如何保存应用程序的屏幕截图或搜索无线打印机和打印应用程序屏幕?
How to save screenshot of the application screen or search for a wifi printer and print the application screen?
要保存屏幕快照:
View view=mTextView.getRootView(); /*mTextView is a textview on my screen. Instead you can take any of your views(imageview, textview or even button)*/
view.setDrawingCacheEnabled(true);
Bitmap bmp=view.getDrawingCache();
现在,您保存位图文件,以保存它。
Now, you save bitmap to a file to save it.
编辑:我想知道,如果你不问编程的方式?如果您正在寻找手动方式,拉吉的回答可以帮助你。
I wonder if you are not asking about programmatic way? If you are looking for manual way, Raj's answer may help you.