比如:我想调用 “com.android.internal.policy.PolicyManager” 中的 “makeNewWindow”方法。

 

String POLICYMANAGER_CLASS_NAME = "com.android.internal.policy.PolicyManager";
  try {
   Class policyClass = Class.forName(POLICYMANAGER_CLASS_NAME);
 
   Method makeNewWindow = policyClass.getMethod("makeNewWindow",
     new Class[] { Context.class }); 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2021-08-25
  • 2022-01-09
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案