Checking every 30 minutes really seems excessive (although I don't know the specifics of your application). I think if you made the interval larger (maybe once a day or once a week), you'd find that the service is terminated by Android in due time, thus freeing memory.

Not familiar with XMPP, so can't advise on that.

If your application uses some kind of server, you could build version checking into the same network protocol as used to exchange data.

-- Kostya

16.09.2010 13:41, Lidia G пишет:
thank you Kostya for your advices,

I already have something like you said about my own URL.
I have implemented an auto-updated somehow, but it is not convenient because i use a Service class that is running always in the background: e.g. all version of the application are saved on an server, and the application knows which version it is and for update, the application generates the name of the next version and appends it to the known URL and checks e.g. every 30 min if the new version exists on the server, if the generated URL exists.

But i would like to use android notifications, do you know how it is working,
to release on the Market is the only possibility?.

I found "An open source project to provide push notification support for Android -- a xmpp based notification server and a client tool kit. -> " http://androidpn.sourceforge.net/ but don't know how to use it.
Maybe someone has an idea

Lidia


--- On *Thu, 9/16/10, Kostya Vasilyev /<[email protected]>/* wrote:


    From: Kostya Vasilyev <[email protected]>
    Subject: Re: [android-developers] How to make an android
    notification for the application?
    To: [email protected]
    Date: Thursday, September 16, 2010, 8:44 AM

    Lidia,

    You could set up your own web server, with a special URL that
    provides latest version info, and add code to your application to
    periodically fetch the URL and compare latest version code to
    what's installed.

    Or you could just release your new version to Market - recent
    versions of Market App appear to do background checks for updates,
    and display a notification in the phone's status bar.

    You won't have control over how often these checks are performed,
    but the effect / effort ratio is unmatched here.

    -- Kostya

    16.09.2010 12:06, Lidia пишет:
    > Hello,
    >
    > Does anyone knows how to do an android notification?
    > I have an application that needs to be updated from time to time.
    > I would like to know how can i implement the android notification
    > feature for my app?
    >
    > I would appreciate any idea.
    > Thanks
    > Lidia
    >


    -- Kostya Vasilyev -- WiFi Manager + pretty widget --
    http://kmansoft.wordpress.com

    -- 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]
    </mc/[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    </mc/[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en


--
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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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