开发者

How to provide download of APK file from google app engine

开发者 https://www.devze.com 2023-02-20 14:02 出处:网络
I put my android application on the google app engine(python) to let others to download it. But I don\'t know how to implement such function by python and the format of android application file is AP

I put my android application on the google app engine(python) to let others to download it.

But I don't know how to implement such function by python and the format of android application file is APK开发者_StackOverflow.


You don't need to use the python bits really you just need to setup your app.yaml file to serve static files.

You'll need to add a directory to the root of your appengine project called something like 'public', place your apk in that directory and then add the following to your app.yaml

handlers:
- url: /public
  static_dir: public

After you deploy your file will be available at yourappid.appspot.com/public/yourfile.apk

See Serving static files

I'd recommend placing your app on market.android.com rather than appengine though.... your users will be able to find it easily and recieve updates as you publish them. You don't have to be selling your app, you can give it away for free too.

0

精彩评论

暂无评论...
验证码 换一张
取 消