PackageManager manager = getContext().getPackageManager();
if (manager.queryIntentActivities(intent, 0).size() > 0) {
  startActivity(intent);
}
// Verify that the intent will resolve to an activity
if (sendIntent.resolveActivity(getPackageManager()) != null) {
    startActivity(sendIntent);
}

 

 


 
                    
            
                

相关文章:

  • 2021-09-18
  • 2021-12-04
  • 2022-02-10
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-12-03
猜你喜欢
  • 2022-01-30
  • 2021-10-06
  • 2021-08-21
  • 2022-01-24
  • 2022-01-20
  • 2021-11-28
  • 2022-01-17
相关资源
相似解决方案