/**
     * 跳转到对应activity
     */
    public void toActivity(Context context,String fullName) {
        if (className != null && className.length() > 0) {
            try {
                
                
                
                
                Intent intent = new Intent(context, Class.forName(fullName));

                context.startActivity(intent);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
fullName为完整类名,如com.example.app.MyActivity


相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案