How to take screenshots with JNI in Android

Updated on technology 2024-05-25
8 answers
  1. Anonymous users2024-02-11

    The operating system of Android mobile phones is similar, taking Huawei mobile phones as an example, you can try the following screenshot methods:

    1. "Switch" appears in the screen drop-down, click "Screenshot" to take a screenshot (if the default shortcut switch does not have a screenshot option, you need to click Add to use it).

    2. "Screenshot" shortcut: Press and hold the "Volume Down" and "Power buttons" at the same time to take screenshots.

    3. Take a screenshot through your knuckles:

    1. Take a screenshot of the complete screen: Tap the screen twice in a row when the screen is on, and the pop-up window will automatically exit to complete the screenshot.

    3. Draw the letter S to scroll and take a screenshot: first tap the screen with your knuckles, and then don't leave the screen, draw the letters S directly with your knuckles, and click the scrolling area to complete the screenshot.

    After the screenshot is successful, the file is saved in the pictures screenshots folder stored on the phone by default, and it can also be viewed through the phone's built-in gallery.

  2. Anonymous users2024-02-10

    At present, there are a lot of framebuffers that read fb0 to take screenshots, but this method is no longer applicable, many mobile phone manufacturers have modified this block, and the data read out is 0, to tell you a simple way, to decompile the existing application that can take screenshots, you will see a file similar to screenshot or screencap, and then prevent it into your application, and then use it in ** to execute this file with su command, basically it will be successful, So far, I've tested this method and I'm ready to use it in my project.

  3. Anonymous users2024-02-09

    I'm going to use jni to access, fopen("d: can be opened in c but not in jni, can anyone help solve it.

  4. Anonymous users2024-02-08

    I'm having a similar problem, I'm going to develop a program on Android that manipulates shape files, and there's a well-known shapelib library written in standard C with encapsulated file reads and writes. But according to the file path under android, it can't be opened, to be precise, the file can't be found. It can be opened with the API provided by Android.

    I don't know if any of the tall fingers are pointing down.

  5. Anonymous users2024-02-07

    I also encountered such a problem, and he prompted me to please point the maze with high fingers when I opened it.

  6. Anonymous users2024-02-06

    I think the above people have basically talked about it, and there is another point that I have to use. For example, from a platform (C++**) to the Android platform, the underlying logic is the same, so that you can use JNI to call the underlying C++** through porting, so as to avoid repeated writing of the same logic, but this process must pay attention to the release of the underlying object.

  7. Anonymous users2024-02-05

    So that's the case?? I've only known the first point, not the second point, and I hope there are other people who have done this kind of thing to say what they think

  8. Anonymous users2024-02-04

    It's almost impossible to strip the OpenCV source code, and it's very well packaged.

    Let me help you!

    1.You can pass the bitmap to the JNI layer, use the include header file (which you have to add in the makefile file), get the pixel value, and then copy the pixel value to the imagedata data of ipiimage, and you're ready to go.

    2.Directly transfer the pixel array to the JNI layer for processing.

Related questions
24 answers2024-05-25

The operating system of Android mobile phones is similar, taking Huawei mobile phones as an example, you can try the following screenshot methods: >>>More

15 answers2024-05-25

Method 1: Press and hold the home button (the square button on the screen) and the power button (the top button on the right side) of the tablet at the same time, about 2-3 seconds, and when you hear the click of the camera, the screen will flash, and the screen has been screenshotted. Screenshot** can be found in the "**" in the main menu of the iPad, usually in the "Camera Roll" folder. >>>More

23 answers2024-05-25

Apple iPhone XS Max Screenshot Tutorial.

In the early morning of September 13th, Apple's most ** full-screen iPhoneXS Max mobile phone officially arrived today. All the details about the new machine have been revealed. I believe that many users have begun to experience the joy brought by the new machine. >>>More

5 answers2024-05-25

On the Windows 7 development platform, the Android Studio development tools use the following methods to limit the maximum number of characters that can be entered in EditText. >>>More

3 answers2024-05-25

MVC, MVP and MVVM are the three common architectural design patterns, and the current use of MVP and MVVM is relatively widespread, of course, MVC is not outdated. >>>More