How to take a screen shot in android -



How to take a screen shot in android -

i want take screen shot in android irrespective of application , without rooting phone. have seen previous thread link followed instructions specific 1 application. , need alter layout file of every application.

i came across link library. 1 thing not clear me in whether manifest.xml file should changed every application.

can please allow me know if other ways possible? know security issue if application doesnt mind need take screen shots.

thanks.

if don't need status bar (or keyboard) can in activity:

view root = findviewbyid(android.r.id.content); root.setdrawingcacheenabled(true); bitmap bm = bitmap.createbitmap(root.getdrawingcache()); root.setdrawingcacheenabled(false);

completely untested should work.

after seeing comment taking screenshots of other applications not believe want possible without rooting phone.

android android-layout screenshot

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -