Any Way To Check If An Activity In Android Is Registered In Manifest File?
Is there any way to check if an Activity in android is registered in manifest file before starting it? say eg: String test = 'com.Hy5.activity.Navigate'; Intent
Solution 1:
Use PackageManager.getActivityInfo() It will throw PackageManager.NameNotFoundException if it's not there
Not sure you will gain anything by doing this though.
Post a Comment for "Any Way To Check If An Activity In Android Is Registered In Manifest File?"