Hello,

I have placed a directory named Data in my assets directory and
written in my Android.mk file the following line:

LOCAL_ASSET_DIR += $(call find-subdir-assets)

in my C code i want to load from this directory in the following way:

char *file = "Data/the_file";

load_file(file)

my full Android.mk file looks like this:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := libbuffer
LOCAL_SRC_FILES := buffer.c

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE    := libpicture_buffer
LOCAL_SRC_FILES := picture_buffer.c

LOCAL_STATIC_LIBRARIES += libbuffer

LOCAL_LDLIBS := -Lbuild/platforms/android-4/arch-arm/usr/lib -llog

LOCAL_ASSET_DIR += $(call find-subdir-assets)

include $(BUILD_SHARED_LIBRARY)

My c-code doesn't find this file on the device and I'm wondering what
I am missing, do I need to add something in the c-code so that it
knows that it is supposed to look in the assets directory?

I am using cygwin for my make if it makes a difference.

Best regards,
Tobias Lindberg

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to