0

The php script is on the android device itself and I need to run it on the device. I have downloaded a few php server apps from playstore and they work fine. But I have to implement this method inside my app so I cannot use another app to perform the server operations.

Actual problem:- So i have this Adobe HDS script and there is no java variant of this script.

2
  • Did you check phpforandroid.net ? Commented Jun 24, 2016 at 11:39
  • Yes I have already tried but no luck. Does not seem to run php scripts. Commented Jun 24, 2016 at 11:43

1 Answer 1

1

Here are the three options I can think of.

1) local execution with sl4a

As far as I know, the only solution solution to execute scripting languages on Android devices (such as Python, Ruby or PHP) is sl4a, whose PHP support is provided by PHP for Android. However it doesn't seem to be actively maintained.

2) server-side execution

You could host your script on a server and call it from the device through a HTTP request.

3) porting to Java

If your script is simple you could try to translate it into Java.

Sign up to request clarification or add additional context in comments.

Comments

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.