I'm trying to compile mysendevent.c for a specific android architecture and specific API Level. I have created foldersendevent/jni/containing mysendevent.c,Android.mk and Application.mk. Once I run ndk-build in sendevent directory, it creates a libs and obj folder containing the the executable for the specific arch but when pushing this executable into my android and trying to replay the touch events, nothing happens.
If I push your mysendevent executable into my android, replaying touch events works just fine.
How did you compile your mysendevent.c?
Here's my Anroid.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# give module name
LOCAL_MODULE := mysendevent
# list your C files to compile
LOCAL_SRC_FILES := mysendevent.c
# this option will build executables instead of building library for android application.
include $(BUILD_EXECUTABLE)
Hey,
I'm trying to compile
mysendevent.c
for a specific android architecture and specific API Level. I have created foldersendevent/jni/
containingmysendevent.c
,Android.mk
andApplication.mk
. Once I runndk-build
in sendevent directory, it creates alibs
andobj
folder containing the the executable for the specific arch but when pushing this executable into my android and trying to replay the touch events, nothing happens.If I push your
mysendevent
executable into my android, replaying touch events works just fine.How did you compile your mysendevent.c?
Here's my
Anroid.mk
:Here's my
Application.mk
: