开发者

Preload android application + have it receive updates

I would like to 'preload' a application on a device, but it needs to retrieve updates from t开发者_C百科he android market place afterwards.

How would I go about doing something like that?

Please note that it is not possible to manually load the application on the device first.

I was thinking either by creating some sort of launcher app, that will then download the latest version from the android market. Anyone have any good samples here? :).

Or better suggestions of course!

Thanks a lot. This is unfortunately a very urgent question.


From https://support.google.com/googleplay/android-developer/answer/113476?hl=en

Google Play can manage updates to preloaded applications, provided the following conditions are met:

  • The preloaded app needs to be in the system partition
  • The preloaded app needs to be free
  • The preloaded app needs to be signed with the same signature as the app published in Google Play
  • The Package Name of the preloaded and updated app needs to be the same
  • The Version Code of the updated app needs to be greater than that of the preloaded app


I managed to get around this problem by creating my own update checker. It connects to a webservice to know if there's a version out with a higher version than the current. If that is the case, I launch an android market view intent (for the package name) that will redirect to the market version.

The nice part is, if the user doesnt have the market configured yet, he'll have to do that first. Afterwards they then end up to the page where they can install the app.

If they have the same packagename, it will overwrite the existing (preloaded) application with the new version. From that moment on, it will be coupled to the android market.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜