Posts

Showing posts with the label IMEI

How to get IMEI on Android Devices?

Image
Hi Readers, As per your queries about IMEI on Android devices; I am posting this article, please do let me know with your feedback and further queries. The solution is as follows:- Device, network, SIM & data state related info on Android platform is managed by TelephonyManager. Your application can use the methods defined in this class to determine the desired information. Please note, you cannot instantiate this class directly; instead you need to retrieve a reference to an instance like this:- String serviceName = Context.TELEPHONY_SERVICE; TelephonyManager m_telephonyManager = (TelephonyManager) getSystemService(serviceName); To access some telephony information you need to set appropriate permission in your application manifest file, because few informations are permission protected. In our case we need to set permission for our app:- Now let's start with actual source code to retrieve the information:- public String findDeviceID() {       String de...

How to get device IMEI number using JavaME for different vendors?

The International Mobile Equipment Identity (IMEI) is a number unique to every GSM, WCDMA, and iDEN mobile phone, as well as some satellite phones. It is usually found printed inside the battery compartment of the phone. It can also be displayed on the screen of the phone by entering *#06# into the keypad on most phones. To retreive same information using JavaME is as follows: As you all know that, MIDP (Mobile Information Device Profile) when combined with CLDC provides a Java Runtime Environment and a rich set of Java APIS for cell phones. MIDP defines some System properties that are available to the midlet with  java.lang.System.getProperty(...) method. As IMEI is manufacturer specifc so there are few manufacturer specific APIs using which you can retrieve this info. Here's how to get IMEI number from mobile devices of different manufacturers: Nokia System.getProperty("phone.imei"); System.getProperty("com.nokia.imei"); System.getProperty("com....