C2DM registration ID refresh

by David C » Tue, 25 Jan 2011 02:53:14 GMT


Sponsored Links
 In the C2DM documentation (Android Cloud to Device Messaging Framework
- Google Projects for Android), it mentions that:

Note that Google may periodically refresh the registration ID, so you
should design your application with the understanding that the
REGISTRATION Intent may be called multiple times. Your application
needs to be able to respond accordingly.

Does this mean an Android application will be notified through the
REGISTRATION Intent when C2DM server refreshes the registration ID?
Then the application can send the new ID to the application server?

Or the application server will only find out the registration ID is no
longer valid when it tries to send a message through the C2DM server.

Thanks.

David.

-- 



Other Threads

1. How to get a java object property from javascript on Android?

Hello,
I have an object

public class SMSMessage  {

        public String id;
        public String body;
        public Boolean store;
        public int folder;
        public Boolean read;
        public String recipient;

//Methods

public String getProperty(String propertyName)
{....}

}

when I call from java script (after to enable the new javascript
interface):

mysms.getProperty("body");

I get the body value however, when I call

var mybody=mysms.body;

I don't get any value. How can I implement this to get property values
using
[object].[property] way and not with [object].getProperty
([propertyName])?
--~--~---------~--~----~------------~-------~--~----~

2. JIS conversion is ignored!

I prepared following method to convert JIS character string to UTF8 on
Android SDK v.1.5..
However when I pass JIS character array into JIS the returned string
value is same as input.

I supposed it should return "undefined" or UTF8 string, Would anybody
tell me why this phenomena
is occurred?

    public String JIS2UNICODE(char[] jis) {
        String unicode = new String(jis);
        try {
            unicode = new String(unicode.getBytes("ISO2022JP"),
"ISO2022JP");
        } catch (Exception e) {
             unicode = "undefined";
       }

        return unicode;
   }



Thanks,
Hiro
--~--~---------~--~----~------------~-------~--~----~

3. how to modify value in AttributeSet?

4. Find all active alarms

5. Where to put local file on the phone

6. How to receive events on MapView using Overlay

7. Unknown response Format coming from the server when i am using nusoap webservices