Reputation: 13517
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?
Upvotes: 0
Views: 214
Reputation: 885
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.
Upvotes: 0
Reputation: 36
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
Upvotes: 1
Reputation: 257
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.
Upvotes: 0