Friday, February 14, 2014

Great God answers about new Andriod jni native method calls for help, hope to understand the


Shortly couple new to android jni, recently included in the local library dll jni call in with GetModuleFileName function, which is in vc and other platforms to run the program for current path, the path can not get after running android jni call the dll, the What are alternative ways to solve it, or should I say GetModuleFileName parameters have the skills, you look great God answers, gratitude!<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Halo, it is win32 api, android did this thing ah, ha ha ha
Reply:
cited a floor DrSmart reply:
Halo, it is win32 api, android did this thing ah, ha ha ha

Will the great God that android jni programming method to get the program running has a relative path for you, looks like a direct path load will be applied absolutely the case can not be used path.
Reply:
try

getApplicationContext (). getFilesDir (). getAbsolutePath ()
Reply:
reference to the third floor hjywyj reply:
try

getApplicationContext (). getFilesDir (). getAbsolutePath ()

It seems only from android jni pass into the end of the path, but this must be touched to modify jni dll called by the code, is still pretty tangled
Reply:
references, 4th Floor ronglinman reply:
Quote: references to the third floor hjywyj reply:

try

getApplicationContext (). getFilesDir (). getAbsolutePath ()

It seems only from android jni pass into the end of the path, but this must be touched to modify jni dll called by the code, is still pretty tangled

android can call dll? win platforms do not understand! !
Reply:
references, 5th Floor wch18956441322 reply:
Quote: references to the 4th floor ronglinman reply:

Quote: references to the third floor hjywyj reply:

try

getApplicationContext (). getFilesDir (). getAbsolutePath ()

It seems only from android jni pass into the end of the path, but this must be touched to modify jni dll called by the code, is still pretty tangled

android can call dll? win platforms do not understand! !

I said that in the case of no data transmission platform and win the next!
Reply:
reference to the 6th floor wch18956441322 reply:
Quote: references, 5th Floor wch18956441322 reply:

Quote: 4th Floor reply ronglinman of references:

Quote: references to the third floor hjywyj reply:

try

getApplicationContext (). getFilesDir (). getAbsolutePath ()

It seems only from android jni pass into the end of the path, but this must be touched to modify jni dll called by the code, is still pretty tangled

android can call dll? win platforms do not understand! !

I said that in the case of no data transmission platform and win the next!


I used to be a local call dll android source code, but the premise is the dll function can not be modified ・ ・

No comments:

Post a Comment