web services - Read/write files on server from Android -


I'm working on a small project for fun, including Android and web server.

I would like some suggestions on the following protocols / models that are most suitable for the following scenarios.

Server Side

I have set up the following 5 components:

  • A config file Rule.csv with 6 columns and about 20 lines. Each line in that file is a rule.

  • A "switch" file RUN.on or RUN.off

  • A Java program that runs according to those rules, if RUN.on is present

  • A chronology that can run Java programs Runs.

  • A PHP page. control.php? Run = on rune.off to change the name of rune.on
    control.php? Run = off RUN.off

    On Android

    • Target

      Now I want an app to change the current state of control.php . To add a feature to the Android app, such as I can see / remove / remove the rule in rule.csv for an Android & lt; - & gt; Server & lt; - & gt; File communication However, getting the full file using PHP, and in this case it is not a good way to transfer it back after editing.

      Since this is just a project for fun, so it is not mine to take it to work; I want to find a good model that handles such work and if necessary I am ready to learn other languages. Any advice?

      I'm sure the rule file is slightly larger or you'll move it. / P>

      Adding a new rule seems very simple - enter data on Android and send the rule to the server. But how do you want to rule out the Android user? Can you just move the names of all the rules, let the user choose the rule, and then just return the name of the rule?

Comments