java - Android Create View of Display -


i trying create view of current display can call following methods create bitmap:

 v1.setdrawingcacheenabled(true);  current = bitmap.createbitmap(v1.getdrawingcache(), 1686, 136, (631-168), (343-136));  v1.setdrawingcacheenabled(false); 

to create view tried line

view v1 = mcurrenturlmask.getrootview(); 

i got error "symbol 'mcurrenturlmask' cannot resolved."

i'm looking create bitmap of section of screen, , thoughts have on issue appreciated.

1

view v1 = mainactivity.this.getwindow().getdecorview();//editted v1.builddrawingcache(); //your rest of code.  // bitmap of whole screen. 

or use viewsnapper


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -