import java.security.NoSuchAlgorithmException; import java.security.MessageDigest; import java.lang.reflect.*; import java.net.*; import java.io.*; import javax.swing.*; import java.util.regex.*; import java.util.*; import android.app.Activity; import android.widget.*; import android.graphics.*; import android.hardware.Camera; public class main { public static void main(String[] args) throws Exception { System.out.println("Listing cameras..."); int n = Camera.getNumberOfCameras(); System.out.println("Cameras: " + n); } }