Android C2DM

by Androidbaby » Sun, 23 Jan 2011 05:14:22 GMT

Sponsored Links

I am looking for any code to implement c2dm for my android app. I know
there are lots of tutorial with zend framework but i want to do this
through Simple PHP.

Any android and PHP server code will be appreciated.

Thanks a lot...


Other Threads

1. Orientation Sensors - they don't seem correct?

Hi all. I wanted to get to grips with the orientation sensors (using
HTC Hero) and have written a simple Spirit Level app which has two
bars displayed, one showing the horizontal level, and the other
showing the vertical. Just like a real spirit level :-)

I've played around with the Sensor and SensorManager classes, but they
just don't seem to work quite correctly. There are two issues:

1) I would expect the tilt reading to give Zero when it is level - a
tip either way gives a positive or negative reading. But I can see
from looking at my device that zero clearly isn't level - it's just
off. About 5 is actually level!

2) For the vertical reading from the same sensor, the sensor readings
seem to get stuck. They get as far as about 75 degrees, as you get
near vertical, but then the readings seem to stick and eventually jump
to somewhere over 100. You can imagine, my app needs a smooth
transition of readings, and this is useless.

So either the sensor doesn't work, or I'm missing something. The
latter is the more likely! What could be going wrong? Here's some of
the code:

mSensorManager = (SensorManager) this.getSystemService
sensors = mSensorManager.getSensorList(Sensor.TYPE_ORIENTATION);
Sensor dirSensor = sensors.get(0);
mSensorManager.registerListener(mySensorListener, dirSensor,

public void onSensorChanged(SensorEvent event) {
        // event.values[1] gives me my tilt reading

2. No security mechanism to protect again reflection

You can't publish code and yet keep it secret.

In particular, the security of your system must not depend on the
algorithm being secret. In fact, you should definitely, definitely
only use publicly-known encryption functions (such as the ones built
into the Android platform). Don't roll your own at all.

You can and should keep the encryption key secret, such as by storing
it in a private file. Make sure you generate a new key for each device
-- if everyone gets the same private key file, it's not private
anymore. :)

>> attacks?

3. Preferred way to support multiple Android OS Versions?

4. update a ListView with getView

5. Some layout advice please!

6. No security mechanism to protect again reflection

7. getNetworkLocation in 2.0