0

I am working on an application for android to get the Device Id from the respective devices of client.

I am following this tutorial.

Here I am struck at the point where I need to make the server-side application to get device Id from GCM.

Actually, I am not an Android programmer and I have no knowledge of this platform, I just want to generate device id that is further required in the push notification.

Ivan Ferić
  • 4,725
  • 11
  • 37
  • 47
user1924911
  • 107
  • 1
  • 1
  • 10

1 Answers1

0

According to http://www.google.com/events/io/2011/sessions/android-protips-advanced-topics-for-expert-android-app-developers.html you should generate a unique installation ID, which can be done via UUID:

String installationID = UUID.randomUUID().toString();

After generation of the installationID, you can save the ID in the SharedPreferences.

petlack
  • 216
  • 1
  • 2
  • 9