screen-capture

how to record video of my ongoing screen on kitkat 4.4

隐身守侯 提交于 2019-12-11 08:18:18
问题 I want to know that how can i record video of my ongoing screen in android using Kitkat 4.4. With lot's of search on Google and SO i did not get anything. I already saw so many link which tell's to record video by connecting device with system using USB and then writing some command in command window, but i want to record video using device only simple like when user's press record button it starts recording and when it press stop button it should stop recording. I saw some same kind of apps

taking screenshot camera view+layout view android augmented reality

你说的曾经没有我的故事 提交于 2019-12-11 02:39:26
问题 I tried taking screencapture from frame buffer and it works well for my layout views I used the following code from here: String mPath = Environment.getExternalStorageDirectory().toString() + "/" + ACCUWX.IMAGE_APPEND; // create bitmap screen capture Bitmap bitmap; View v1 = mCurrentUrlMask.getRootView(); v1.setDrawingCacheEnabled(true); bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); OutputStream fout = null; imageFile = new File(mPath); try { fout = new

CallbackOnCollectedDelegate at Application.Run(new Form1())

佐手、 提交于 2019-12-11 02:20:48
问题 I made a very small application that captures the screen inside games using SlimDX. (I press left click to capture) The capture works (atleast when I click on the form itself) but as soon as I click on firefox or any other application, I get this exception : A callback was made on a garbage collected delegate of type 'CaptureScreen!CaptureScreen.Form1+WinEventDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be

Capture android screen [duplicate]

亡梦爱人 提交于 2019-12-11 00:23:58
问题 This question already has answers here : Screen Capture in android (4 answers) Closed 4 years ago . How can I programmatically perform a screen capture on an Android phone? 回答1: You cannot do this from an android app except on a rooted phone, as you don't have permission to access the framebuffer device. You can however do it over adb from the DDMS window of your development machine, as adb runs in the graphics group which has permission to the framebuffer. If you want to do something similar

Getting blank (black) screenshot with automated screen capture using task scheduler

感情迁移 提交于 2019-12-11 00:22:48
问题 I am trying to troubleshoot a software bug in which we think an app may not be launching every time it is called. To test this, I created a series of scheduled tasks to launch the app, take a screenshot, and then close the app. These tasks are all run through .bat files. Everything works fine except for the screenshots. When run as a scheduled task, the .jpg from the screen capture always shows a black box. If I execute the .bat file normally, the screenshot looks fine. I am using nircmd to

MEDIA_PROJECTION_SERVICE not valid in call to getSystemService()

≯℡__Kan透↙ 提交于 2019-12-10 16:03:07
问题 I am trying to develop an application that requires the ability to capture screen content. I'm targeting lollipop to avoid the requirement for root. When trying to get an instance of the MediaProjectionManager via a call to getSystemService() I am getting the following error reported in Android Studio: Must be one of: Context.POWER_SERVICE, Context.WINDOW_SERVICE, Context.LAYOUT_INFLATER_SERVICE, Context.ACCOUNT_SERVICE, Context.ACTIVITY_SERVICE, Context.ALARM_SERVICE, Context.NOTIFICATION

Capture whole scrollview bigger than screen [duplicate]

一笑奈何 提交于 2019-12-10 15:33:16
问题 This question already has answers here : Take a screenshot of a whole View (13 answers) Closed 5 years ago . The main issue is saving the whole scroll view as a bitmap image rather than just what appears on the screen. Is there a way to save whole scroll view, and if so how? 回答1: Make a RelativeLayout or LinearLayout in your ScrollView to get Bitmap from Layout. Organize this way: public class ActivityA extends Activity { LinearLayout PP_Ll; Button btn_capture; @Override protected void

How to speed up BitBlt to capture screen with aero?

我是研究僧i 提交于 2019-12-10 13:45:19
问题 I use following code to capture the screen with GDI functions: // Prologue: int iScreenWidth = GetSystemMetrics(SM_CXSCREEN); int iScreenHeight = GetSystemMetrics(SM_CYSCREEN); HDC hScreenDC = GetDC(0); HDC hCaptureDC = CreateCompatibleDC(hScreenDC); HBITMAP hCaptureBitmap = CreateCompatibleBitmap(hScreenDC, iScreenWidth, iScreenHeight); HBITMAP hOldBitmap = (HBITMAP)SelectObject(hCaptureDC, hCaptureBitmap); // Capture: BitBlt(hCaptureDC, 0, 0, iScreenWidth, iScreenHeight, hScreenDC, 0, 0,

Expression Encoder 3 SDK screen capture C# sample?

风流意气都作罢 提交于 2019-12-10 12:16:28
问题 I am using VSTS 2008 + .Net 3.5 + C# + Microsoft Expression 3 SDK. I want to capture screen and output a wmv file. I tried hard but can not found C# samples from Google. Any reference samples? 回答1: Wrong kind of tool, Expression Encoder is a transcoder. It requires a video format as input and encodes it to a different output format. You'll need to create a video of the screen first. Capturing a screen shot is easy enough, Graphics.CopyFromScreen() can do that. Generating a video would require

take device snapshot programmatically in android

倾然丶 夕夏残阳落幕 提交于 2019-12-09 23:45:31
问题 How can I take snapshot of device like this tablet has button in menu bar to take a snap shot of device screen? the device has android 4.1.1 this same functionality is wanted to implement in my application to capture the screen snapshot. note that: I don't want to use Layout.getDrawingCache(); I only want to access this method as the OS uses.or a solution like this I do not need to root device.so please do not provide root solutions 回答1: just have a look on this https://code.google.com/p