Gives type information of user device. - Android Hardware

Android examples for Hardware:Device Feature

Description

Gives type information of user device.

Demo Code


import android.content.Context;

public class Main{
    private static DeviceTypeDetector deviceTypeDetector;
    /**/*from   w  ww  .ja  v a 2 s.  c  o  m*/
     * Gives type information of user device.<br>

     */
    public static DeviceType getDeviceType(Context context) {
        return deviceTypeDetector.getDeviceType(context);
    }
}

Related Tutorials