so when you need to download files from the Internet, how to call the so file?
These so consistent file interface.
Expert support Kazakhstan
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
JNI understand it? To understand what should know know. . . .
Reply:
System.loadLibrary ("readerjni");
Looks like
within the application can only loadSystem.load does not work that way
Reply:
Farmer uncle's blog seems to have. . You look for
Reply:
Farmers uncle did not find there, from the Internet to find an article
http://stackoverflow.com/questions/6291087/android-load-library-error-failed-to-map-segment
Specific processes:
1, copy the file to the SDCard so the application itself directory / data / data / packageName / custom directory / under
Get custom code to a file directory, copy the program slightly
SDCard
,
File dir = TestReaderCardActivity.this.getDir ("mylibs", Activity.MODE_PRIVATE);
File distFile = new File (dir.getAbsolutePath () + File.separator + fileName);
2, Load / data / data / packageName / custom directory / file under so:
,
File dir = TestReaderCardActivity.this.getDir ("mylibs", Activity.MODE_PRIVATE);
System.load (dir.getAbsolutePath () + File.separator + "libReaderLower.so");
I hope to encounter the same problem to help
Reply:
I also want a friend in SO SD card files to be copied to Data / data / packge / lib / inside
But I do not know how to copy files ............ SO I now use C to copy but did not succeed.
Hope that the landlord can borrow my reference implementation code under wow. 871980431@qq.com
Reply:
Data / data / packge / lib /
This folder is not operated ...
Reply:
# 4
Can you write clearly point ah
No comments:
Post a Comment