how to load files in the development of android NDK

Tutorials with advanced 'difficulty' and more Lines of Code.

how to load files in the development of android NDK

Postby yaolin170 » Tue Jan 26, 2010 9:04 am

Hi there ,
I am using NDK to load some png files ,but i don't know the correct path used in fopen()method in the native code,i have tried many times ,I put the png files in assests directory or in res/drawlable directory ,but every time fopen() method can't find them .
so please tell me where these png files should be put ,and what the path used in fopen() in the native code should be ?

by the way ,I have tried the way that put the files on sdcard ,then fopen() method can find them successfully .but i think that's not the best way.

I appreciate any help from you !
No Gods ,No Kings,Only Man!
yaolin170
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Oct 23, 2009 7:21 am

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests