last code cleanup removed to much had to add...import android.content.pm.PackageInfo;