How to take screen shot on Framlayout?

All your problems with Audio, Video and Images.

How to take screen shot on Framlayout?

Postby wildwinds » Fri Jun 18, 2010 8:18 am

my app has framelayout on camera preview and overlay view.

i want get an image which is captured that camera preview and overlay view is operated over the framelayout

such like screen capture in the function of DDMS

in my source code

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. ...
  2. frame.addView(cameraview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
  3. frame.addView(overlayview, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
  4. ...
  5. framelayout.getRootView().setDrawingCacheEnabled(true);
  6. framelayout.getRootView().buildDrawingCache();
  7. Bitmap bm = framelayout.getRootView().getDrawingCache();
Parsed in 0.012 seconds, using GeSHi

but it is possible to get an overlay view but camera view is not
Once Poster
Once Poster
Posts: 1
Joined: Fri Jun 18, 2010 7:54 am


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 6 guests