2

I want to record the screen contents for 1 min. After searching google, I found that the api level 21 contains MediaProjecion class. My app is build for api level 18.

Can I use this class? Is there any support library for this?

TryinHard
  • 4,078
  • 3
  • 28
  • 54
Numa Fitness
  • 73
  • 1
  • 7

1 Answers1

6

Can I use this class?

No.

Is there any support library for this?

No.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • thanks . can you suggest any link where i can get how to capture screen video . i am following this link 'http://stackoverflow.com/questions/23800030/how-to-record-android-screen-video-programmatically-in-kitkat-4-4 but it is only for kit-kat' and above – Numa Fitness Jul 30 '15 at 12:49
  • @NumaFitness: Outside of rooted devices, an Android SDK app cannot capture screen video prior to Android 5.0. – CommonsWare Jul 30 '15 at 12:53
  • it is ok even if the mobile has to be rooted all i want to do is record a screen video for 1 min – Numa Fitness Jul 30 '15 at 13:07
  • You can run the `screenrecord` app on Android 4.4 (using `su -c` to switch away from the app's user ID). With minor changes the command can be used on Android 4.3, but you'd have to install it yourself. – fadden Jul 30 '15 at 16:06
  • but this will make it compulsory that the user should have the screenrecord app. how can i record the screen from my app – Numa Fitness Jul 31 '15 at 04:48
  • is there any library available to create such a video, i searched for ffmpeg but i am not understanding how to work with it ,is there any other solution – Numa Fitness Jul 31 '15 at 08:06