Click here to Skip to main content
15,906,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi All
I know the screen capture when project have layout view but i cont capture the surface view in android
please help me................
Posted

I might be wrong, but this should work
Java
View v = view.getRootView();
v.setDrawingCacheEnabled(true);
Bitmap b = v.getDrawingCache();


Found an article over here[^].

-KR
 
Share this answer
 
Comments
Xiao Ling 4-Mar-14 21:41pm    
Your answer is correct. I give you 5 :)
Krunal Rohit 4-Mar-14 23:47pm    
Thanks man.

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900