Java tutorial
//package com.java2s; public class Main { private final static String CLASS_NAME = "android.bluetooth.BluetoothPan"; private static Class<?> bluetoothPan; public static Class<?> getKlass() { if (bluetoothPan == null) { try { bluetoothPan = Class.forName(CLASS_NAME); } catch (ClassNotFoundException e) { e.printStackTrace(); } } return bluetoothPan; } }