Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen Capture and Sharing in Android 5.0

There is a mention about Screen capture and Sharing api in Android 5.0 at: Android 5.0 APIs

There its mentioned about MediaProjectionDemo class in the ApiDemos. I could not find it anywhere to download. Where can I find it? Are they yet to publish API demos for Android 5.0?

like image 598
arjoan Avatar asked Oct 20 '14 09:10

arjoan


3 Answers

I was going through the solutions available on web to take screenshot, So I found some really helpful which I would like to share here:

1) Here is the MediaProjectionAPIDemo available on github

2) Here is another Project using MediaProjectionAPI available on github

3) Another solution which require NDK to stream real time Screen Capture

4) And at last, here is Android Screenshot library

Hope it will help you to take off :-)

like image 154
Muhammad Farhan Habib Avatar answered Oct 21 '22 17:10

Muhammad Farhan Habib


I found the source code here:

like image 23
Kerem Kusmezer Avatar answered Oct 21 '22 17:10

Kerem Kusmezer


I have just downloaded the 5.0 SDK in my Eclipse Android Development environment.

Makesure that you have downloaded the complete SDK apart from some system Images which you dont require.

If you have downloaded the SDK, then create and emulator device with Android 5.0.

In that, go to Apps---> API Demos ---> Media ----> Media Projection.

I can able to see the Media Projections App.

like image 36
Akhil Avatar answered Oct 21 '22 17:10

Akhil