Because we use a XMPP base application, we chosed pubsub as a way to
notify new versions to the user. The main advantage is that it uses a
push model. We use the last published item feature and pubsub
notifications, so the user is aware of a new version when he launches
the app or in real time if he's online while a new version has just
been released. No timer or service at all in the application code.

On Nov 5, 11:57 pm, friedger <[EMAIL PROTECTED]> wrote:
> Currently, relying on an external resource is the way to do updates,
> this is how it is described in the documentation.
>
> If someone is checking against Market, please let us know.
>
> Friedger
>
> On Nov 4, 8:49 pm, "Dan B." <[EMAIL PROTECTED]> wrote:
>
> > isn't there some way to check the version against the Market instead
> > of having to host version information somewhere else? I know the app
> > Locale somehow knows when an update is available, it seems reasonable
> > to query the Market rather than relying on outside sources :\
>
> > On Nov 1, 1:50 pm,friedger<[EMAIL PROTECTED]> wrote:
>
> > > I'd say the package name is the global identifier.
>
> > > Maybe you can just provide a VeeCheck url based on the package name
> > > (as alternative to the app id). So I could check that url. If you
> > > don't host an app for the package name or if it is not unique you
> > > could return a HTTP 400.
>
> > >Friedger
>
> > > On 1 Nov., 17:37, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > >Friedger,
>
> > > > How are you identifying the apps?, I'd happily add an extra field or two
> > > > to the AndAppStore.com data that you can search for if it would be 
> > > > useful.
>
> > > > Al.
>
> > > >friedgerwrote:
> > > > > The idea is that the Updater will also be able check all applications
> > > > > it knows about by a single button clicked or scheduled task. So, once
> > > > > the intent from one application is processed by the Update it is
> > > > > possible to include this application to the periodic update.
>
> > > > > A more general solution that includes all installed applications is
> > > > > currently not possible as I can't determine the location of the
> > > > >versioninfo file.
>
> > > > > The apk mentioned above is provided for developers to test. In the
> > > > > releaseversionthe interval between two checks will be at least 24
> > > > > hours, so you can start the service as often as you like but the check
> > > > > is only performed once every 24 hours. Furthermore, only the log cat
> > > > > shows whether the installedversionis up-to-date or not. In both
> > > > > cases the notification is show (this is to simplify the tests).
>
> > > > > Would you like to have a different Notification text? Any ideas for
> > > > > icons?
>
> > > > >Friedger
>
> > > > > On 1 Nov., 13:18, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > > >> HiFriedger,
>
> > > > >> I've updated AndAppStore.com to provide a versionCode in the 
> > > > >> update.xml
> > > > >> as you requested.
>
> > > > >> At the moment anyone with applications listed will find that they can
> > > > >> specify the versionCode in the details about a releasedversion(not 
> > > > >> the
> > > > >> application details page, the release details page).
>
> > > > >> I am working on code to pull the information from the manifest 
> > > > >> included
> > > > >> in the apk, but this is a little way off yet.
>
> > > > >> Thanks for making this available.
>
> > > > >> Al.
>
> > > > >>friedgerwrote:
>
> > > > >>> Hi,
>
> > > > >>> we are preparing the OI Updater that checks a given info file for 
> > > > >>> new
> > > > >>> updates as described in the Android documentation.
>
> > > > >>> You can find the current build (rev 1284) at
> > > > >>>http://openintents.googlecode.com/files/UpdateChecker.apk
>
> > > > >>> In order to initiate the update check you just have to add the
> > > > >>> following code:
>
> > > > >>>            Intent service = new Intent();
> > > > >>>            service.setAction(ACTION_CHECK_VERSION);
> > > > >>>            String uri= "http://uri-to-update-file.txt";
>
> > > > >>>            service.setData(Uri.parse(link));
> > > > >>>            service.putExtra("package_name", 
> > > > >>> context.getPackageName());
> > > > >>>            service.putExtra("app_name",
> > > > >>> context.getString(org.openintents.notepad.R.string.app_name));
>
> > > > >>>            int currentVersion = -1;
> > > > >>>                    PackageInfo pi = 
> > > > >>> context.getPackageManager().getPackageInfo(
> > > > >>>                                    context.getPackageName(), 0);
> > > > >>>                    currentVersion = pi.versionCode;
> > > > >>>            service.putExtra("current_version", currentVersion);
> > > > >>>            context.startService(service );
>
> > > > >>> You can also put current_version_name if you check against the
> > > > >>> veecheck url at AndAppStore.
>
> > > > >>> It is still alpha, but we would appreciate early feedback.
> > > > >>> How do you like it? Would you include it in your code? More/other
> > > > >>> features?...
>
> > > > >>> Cheers,
> > > > >>>Friedger
>
> > > > >> --
> > > > >> Al Sutton
>
> > > > >> W:www.alsutton.com
> > > > >> B: alsutton.wordpress.com
> > > > >> T: twitter.com/alsutton
>
> > > > --
> > > > Al Sutton
>
> > > > W:www.alsutton.com
> > > > B: alsutton.wordpress.com
> > > > T: twitter.com/alsutton- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to