Android printscreen StreetViewPanoramaFragment -


i have relativelayout inside have streetviewpanoramafragment ( android:name="com.google.android.gms.maps.streetviewpanoramafragment") , wana able make screen shot of fragment when press button.

what try :

view v1 = this.getwindow().getdecorview();  v1.setdrawingcacheenabled(true);  bitmap mbitmap = bitmap.createbitmap(v1.getdrawingcache());   v1.setdrawingcacheenabled(false);  file photofile = null; try { if (ninstance instanceof streetview) { photofile = createimagefile(); }  fileoutputstream outputstream = new fileoutputstream(photofile); int quality = 100;  mbitmap .compress(bitmap.compressformat.jpeg, quality, outputstream);  outputstream.flush(); outputstream.close(); } catch (ioexception ex) { } 

i overall printscreen should appear streetview capture.... is't transparent :(

i great me capture streetviewpanoramafragment , not screen

any ?

thanks


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -