I understand that to take video of the application you need to have your phone rooted in android. What feature puts this restriction?
Workaround
I want to know how feasible this is? Take screenshots of the UI on regular intervals(very quick intervals) and convert those pictures into a video.
NOTE
By screenshot I mean the area of only my application's layout. I want to take rapid screenshots of the layout and then convert it into a video. If it is possible, when saving the current state of the layout in a bitmap, will it do so in a UI thread?
Asked
Active
Viewed 211 times
0

Ashwin
- 12,691
- 31
- 118
- 190
3 Answers
1
if you are trying to capture the current application activity you can use this code in a thread with a timer.
RelativeLayout rl1 = (RelativeLayout)findViewById(R.id.relative_layout_1);
View v1 = rl1.getRootView();
v1.setDrawingCacheEnabled(true);
bitmap = Bitmap.createBitmap(v1.getDrawingCache());
v1.setDrawingCacheEnabled(false);
and you can make a video. refer This Link
0
You can use this solution if you want to capture your own application activities.
Capturing the phone's entire screen is only possible using the the READ_FRAME_BUFFER permission which allows system (non 3rd party!) apps to take screenshots. This is why this solution works for rooted devices only. You can find a more detailed explanation here.

Community
- 1
- 1

Roman Blachman
- 227
- 6
- 13
-
Thanks for the reason. I want to capture my application activities. I wasnt to know how feasible it is to take rapid screenshots of my activity and then make a video out of the screenshots. – Ashwin Oct 27 '13 at 09:55
0
If you are just looking to capture some fluid images of your app in action, you might just try video capturing/taking screenshots of your app on your desktop while running the app in the Android emulator.

Will Thomson
- 875
- 6
- 19