com.nativex.advertiser
Class SerialNumberFactory

java.lang.Object
  extended by com.nativex.advertiser.SerialNumberFactory

 class SerialNumberFactory
extends Object

Used to determine if the serial number exists for the device. Serial number only exists for devices versions 2.3 and higher.

Author:
matthew.macgregor

Field Summary
private static String serialNumber
           
 
Constructor Summary
SerialNumberFactory()
           
 
Method Summary
static String getSerialNumber()
          Returns the serial number for the android device, or null if it does not exist.
private static void initSerialNumberCompatibility()
          Uses reflection to access the serial number for the android device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialNumber

private static String serialNumber
Constructor Detail

SerialNumberFactory

SerialNumberFactory()
Method Detail

getSerialNumber

public static String getSerialNumber()
Returns the serial number for the android device, or null if it does not exist.

Returns:
Serial number or null if no S/N exists for the device.

initSerialNumberCompatibility

private static void initSerialNumberCompatibility()
Uses reflection to access the serial number for the android device.