I have a PHP script that has as input a target image and an image dir to make a treatment.
Wanting to make an Android app, i have thinked about this two ideas:
1- Choose the images in the Android device and send them to the server, the server will make treatments and send the output final image to the device.
Problem: A high amount of data will be sent according to the number of images and their size.
2- Execute the php script locally in the device, but i think that it must have a good CPU and i don’t know if Android OS can handle that.
Can you please advice me and propose some ideas/solutions?
Thank you very much
If the image is present on the android device, the best solution is probably to have to treatment be done on that android device — not calling any remote service : as you said, an image can be pretty big, and network connectivity is not always fast nor available.
Generally speaking, you cannot run PHP on android (well, there are ways to run PHP on android, but the corresponding apps are not installed by default), so you’d have to re-code your treatment in JAVA, as an android application.