get activity and service components using PackageManager