duanchuang3182 2014-08-07 10:40
浏览 134
已采纳

如何在服务器端构建.apk文件

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.

  • 写回答

1条回答 默认 最新

  • dougai0138 2014-08-07 10:52
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题