Search code examples
androidjava-native-interfacecaffe

Storing file on Android for Native reading


I'm writing app for android and I'm using caffe library. My problem is that on start I need to initialize caffe, which is done by passing two files (structures of network) to caffe. Problem is that I don't know how to store extra files on device. I've added model file to assets, but I don't know how can I read it using file path. Can you tell me where to store these file that could be access using file path?

Thanks for any ideas.


Solution

  • Assets are packaged and access only using special methods, so i solved problem by access file and then copy it to new location which i passed to native method.