How can I read a file packaged with an android app through a C++ library?

166
July 08, 2017, at 4:03 PM

I have written a Unity application in C# that uses a C++ library built using Android NDK. I want to read some files that are packaged with the android application (in the assets folder) from this C++ library.

NDK does provide an API that allows files to be accessed. However, this API seems to require the Java AssetManager, and I'm not sure how I can access that from C#.

Is there some way I can do so? Alternatively, is there any other way I can go about reading these assets?

Answer 1

I believe that APK files are just ZIP files so you can open them like you would any zip file. C# has built in utilities for reading zip files.

READ ALSO
Unable to read output from barcode scanner

Unable to read output from barcode scanner

I want to upload the result from the barcode scanner to the edit text, but it is not displaying in the edit textMay I know what the problem is and how do I solve it?

198
vue-cli + webpack: where to include npm package js and css files?

vue-cli + webpack: where to include npm package js and css files?

I'm trying to import an npm package into my vue-cli dev siteHere are the instructions provided by the package website:

377
check 2 arrays and see if an ID is in them and then swap out the ID for another and do this for multiple collections

check 2 arrays and see if an ID is in them and then swap out the ID for another and do this for multiple collections

I have a bunch of collections/ models that have useful and notUseful arrays in each documentsThey may contain ids

130
Node.js Unhandled promise rejection

Node.js Unhandled promise rejection

I'm trying to make a login with nodejs using passport but I'm having a problem when a username that's not in the DB tries to login

354