1

I would like to use an external executable within my android app. It is distributed for different platforms and under windows it's a console program that can be used in this way For Android the executable is called senpai-arm. I moved it to an Android folder and tried to start it in a similar way to the link above but it won't start.

 String storage = context.getFilesDir().getAbsolutePath();
 // Create the proccess in JAVA
 Process proc = Runtime.getRuntime().exec(storage+ "/senpai-arm");

error message below:

java.io.IOException: Error running exec().

Command: [/data/user/0/com.example.jp.fanfar/files/senpai-arm] Working Directory: null Environment: nul
cause: Permission denied

Sorry that I didn't observe the cause Permission denied in my original question. I rephrase my question a bit.

  • Is it possible to start a program like this?
  • What permissions do I need? I have read/write external storage permission.

(I have the source code in C++ and read about NDK but I was hoping to take a shortcut by using the distributed executable instead.)

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.