0

My simple version of the question is ,how do i build .apk file on the server side ,assuming my server is in PHP language.
Long version
Step 1: I am taking data from HTML form
Step 2: I am generating the RSS feed for it using PHP classes
Step 3: I will modify the java file in the server side to update the URL of the RSS feed i have generated in step 2
Step 4: Now i have all the files to build the Android app on the server side ,except that i have no info on how to build it actually .

ps: I have googled it ,I have not found any particular solution regarding Native Android apps ,Phone gap seems to have one solution ,but i am not interested in Phone gap.

Vamsi Pavan Mahesh
  • 240
  • 1
  • 8
  • 30
  • 1
    im not sure what you mean ........ do you want an android app using php and html ?? – Youness Aug 07 '14 at 10:44
  • You want the server to build an Android app automatically when some data changes? What's the point of that? – 0101100101 Aug 07 '14 at 10:46
  • I want to build the android app on the server side ... the native app only .. but is there any php script to build it .. – Vamsi Pavan Mahesh Aug 07 '14 at 10:46
  • You will find your answer and plenty of pointers here [How to compile APK from command line?][1] [1]: http://stackoverflow.com/questions/15285331/how-to-compile-apk-from-command-line – Adrian Aug 07 '14 at 10:48
  • no the URL changes automatically ,not the app ,and the app parses the data from the URL – Vamsi Pavan Mahesh Aug 07 '14 at 10:48

1 Answers1

1

You will need to manage your Android project using the Ant and command line tools. Lars Vogel's article is quite useful: Creating Android applications via the command line and Apache Ant

Official Android resources:

Also have a look at this SO question How to compile APK from command line?

If all that changes in your application is the RSS URL, wouldn't you be better of by creating a RSS redirect feed on the server side and leave a static URL inside the Android application?

That way you will not need to keep recompiling and redeploying the app in the first place, just modify the RSS feed on the server side. You can maintain a session object and redirect different users to different locations, as you see fit.

How to Properly Redirect Your RSS Feed

Community
  • 1
  • 1
Adrian
  • 6,013
  • 10
  • 47
  • 68
  • Yes i agree with you ,the command line is neat and the exact way of doing things ,how about doing on server side ? can i access command line on server side or is there any php script to simulate the same ? forgive my ignorance (i am a newbie in server) – Vamsi Pavan Mahesh Aug 07 '14 at 10:55
  • @Vamsi you will need to install the command line tools on the server side and invoke them from your PHP application – Adrian Aug 07 '14 at 10:56
  • @adrain Do you have any idea to install commandline tools in serverside. which type of command line tools need to install . how the andriod development environment available to server. – madhu kotagiri Nov 25 '14 at 07:32