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
Post a Comment