Update Preview.java

Import PackageManager