如何建立服务器端.apk文件 [英] How to build .apk file on server side

查看:138
本文介绍了如何建立服务器端.apk文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的简版的问题是,如何构建在服务器端.apk文件,假设我的服务器是PHP语言。结果
龙版结果
第1步:我从HTML表单结果以数据
第2步:我使用的PHP类生成RSS资讯提供,结果
第3步:我会修改服务器端Java文件以更新的RSS源的URL我在第2步结果已经产生
第4步:现在我都建立在服务器端的Andr​​oid应用程序中的文件,但我对如何实际构建它没有资料搜索结果
PS:我GOOGLE了它,我还没有发现关于本土Android应用任何特定的解决方案,手机缺口似乎有一个解决方案,但我不感兴趣,手机的差距。

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.

推荐答案

您将需要管理你使用Ant和命令行工具的Andr​​oid项目。
拉尔斯·沃格尔的文章是非常有用的:的创建通过命令行和Apache Ant

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

官方Android资源:

Official Android resources:

  • Managing Projects from the Command Line
  • Building and Running from the Command Line

另外看看这太问题如何从命令行编译APK ?

如果一切发生在你的应用是RSS网址,你会不会是更好地创建一个RSS服务器端重定向饲料和离开的Andr​​oid应用程序中的静态网址?

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?

这样,你就不需要继续重新编​​译和重新部署在首位的应用程序,只需修改服务器端RSS提要。您可以维护一个会话对象和不同的用户重定向到不同的位置,你认为合适的。

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.

如何正确重定向你RSS订阅

这篇关于如何建立服务器端.apk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆