search

Home  >  Q&A  >  body text

Java后台,从服务器上给Android客户传递更新的app,怎么传递,是传递xx.apk?

我是写Java后台的。Android客户端检测到有更新时,我给Android端的同事一个连接,他通过这个怎么下载apk?
怎么传递?base64?

PHP中文网PHP中文网2888 days ago352

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:37:42

    You can make an API to detect updates and pass the update address in the returned result. Just put the APK generated by client development in the static file directory and let Nginx or Apache handle the HTTP download. There is no need to process the Apk file itself through Java. If you need access permissions and the like, you can use sendfile to send the file after detecting the file. There is also no need to use Java to process the Apk file

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:37:42

    The server gives the client an upgrade file link. The client uses the HTTP protocol to download and directly gives the apk format file without base64. The client will know how to download it. If he doesn’t know how to write it, come back and tell me. , let me tell you again that it’s time for your client development team to be replaced.

    reply
    0
  • 阿神

    阿神2017-04-17 17:37:42

    First visit the server and match the version number. If you need to upgrade, go to the server to download the apk resource

    reply
    0
  • Cancelreply