Tag Archives: permission

Implementing GCM in Android

By | March 30, 2018

Hi Friends, In this article I will be talking about how you can implement GCM in Android using FirebaseMessaging Service. Below are the steps you need to follow… Create Project in Android Studio Create a new project in Android Studio. The package name we use here will be used in the Firebase Console. Create Project in Firebase Console… Read More »

How to find the device ID or Serial Number of an android device?

By | July 11, 2011

Here is a simple API to find the device ID of an android device. There are many ways to get the device ID in android [java] String serial_no = null; try { Class<?> c = Class.forName("android.os.SystemProperties"); Method get = c.getMethod("get", String.class); serial_no = (String) get.invoke(c, "ro.serialno"); System.out.println("Device serial ID : " + serial_no); } catch (Exception e) {… Read More »