QT, THE BETTER ANDROID NDK:Android Studio calls the so library written by Qt

Translation: QT, THE BETTER ANDROID NDK Click Open Link Points: How to call so library written by qt in Android Studio and how to load relevant qt dynamic library at the same time. I. QT for Android Compiler so Library Create Qt Widgets Application - > Build Suite Select Android, Delete the original Widget and main; (The original requ ...

Posted on Tue, 12 Feb 2019 14:57:17 -0800 by crinkle

android jni c/c++ threads call java functions through CallVoidMethod, which causes runaway problems

Recently, when porting p2p libraries from network cameras to android platforms, jni is needed. Recently, when calling java functions in c thread, jni is needed. There is a problem. If you call a java function in the same thread, it's okay, but when you call a java function in a c thread, you run. Ultimately, let's paste the process code of c ...

Posted on Tue, 12 Feb 2019 14:03:18 -0800 by ahasanat

Resolve Could not read input channel file descriptors from parcel

Personal development process encountered this bug, found some information, netizens said that from the following aspects, check their own code The image added in RemoteView is too big, and the exception will be reported when it exceeds 40K. Intent will also report this error if it delivers too much data over 1M There are too many FileDescri ...

Posted on Tue, 12 Feb 2019 05:42:18 -0800 by lizzardnub

Android Studio 3.0 Canvas Create KotlinDemo

Dead work Create new Project in Android Studio 1 Gradle Scrips configuration 2 Kotlin code 3 test Demo 1 Preparations: Android Studio 3.0 Canvas version acquisition, because Android Studio 3.0 can be installed without Kotlin plug-ins, has been a good integration of Kotlin plug-ins. https://developer.android.com/studio/preview/i ...

Posted on Mon, 11 Feb 2019 21:03:19 -0800 by JacobYaYa

InflateException:Bin file line #19:Error inflating class MyTextView

InflateException: Bin file line #19:Error inflating class MyTextView A Brief Introduction to Errors In order to achieve the horse-running effect of TextView, I wrote a class of MyTextView that inherited TextView. As a result, an error occurred when the XML page of layout was called. The class structure diagram is as follows: The error message ...

Posted on Mon, 11 Feb 2019 14:06:18 -0800 by prinzcy

Android Studio introduces the correct posture of. so files and the resolution of text relocations when calling. so files

First, create libs directory in src peer directory. so copy to this directory as shown in the figure Then configure the lib path at the app level build.gradle if The complete code is as follows: apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "25.0.1" defaultConfig { applicati ...

Posted on Mon, 11 Feb 2019 08:51:18 -0800 by turdferguson

GridView is nested in ViewPager, ViewPager is nested in ScrollView, and GridView shows incomplete problems.

Title citation Solution Title citation The page in ViewPager is GridView. ViewPager is nested in ScrollView. The height of ViewPager set to MATCH_PARENT or WRAP_CONTENT is not fully displayed. Solution Method 1 Set the height of ViewPager to a fixed value. This can be displayed, but the fixed value is not well controlled, u ...

Posted on Mon, 11 Feb 2019 04:30:18 -0800 by AXiSS

Android Develops Tip 5 -- View xxx not attached to window manager

For reprinting, please indicate the source: http://blog.csdn.net/crazy1235/article/details/70195049 error message java.lang.IllegalArgumentException: View=DecorView@f4179d7[title] not attached to window manager at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:473) at android.view.WindowManagerGlobal.removeView(Wi ...

Posted on Sun, 10 Feb 2019 19:39:17 -0800 by Asnom

Implementation of Android Surface Fligner Vsync Signal Jni/C++ Call

The Anroid Vsync signal is used to inform APP to render, which is divided into two kinds of hardware Vsync signal and software Vsync signal. Let's not go into details here, but how to get Vsync signal through C++? First, look at the interface provided by the upper layer. #include "LibLoader.h" #include <dlfcn.h> LibLoader::LibLoad ...

Posted on Sun, 10 Feb 2019 19:03:17 -0800 by dancing dragon

optimized /data/user/0/xx is now owned by the current user

When you encounter this problem, you will see that it is probably a question of authority, and then go directly to Baidu first. https://stackoverflow.com/questions/29253434/android-dexclassloader-error-optimized-data-directory-not-owned-by-current Multi user Android DexClassLoader error,'optimized data directory.. Not owned by current user'f ...

Posted on Sun, 10 Feb 2019 13:39:17 -0800 by bonkaz