I was trying to pass ability like we pass in android
Intent intent = new Intent(HomeActivity.this, cls);
But in Harmony we have to use operation builder so used this method
intent = new Intent();
Operation operation = new Intent.OperationBuilder().withBundleName(ability.getBundleName()).withAbilityName(name.toString()).build();
intent.setOperation(operation);
Here 'name' variable is class name.
I just wanted to know that is this the equivalent of the above android code. If not then what is the correct way