What is difference between setFlags and addFlags for intent. Could any one explain it please. Help Appreciated.
intent.setFlags(int num);
This set flag controls how to handle the Intent.setflag mainly depends on type of component being executed by the Intent.It returns the same intent object for chaining multiple calls into a single statement.
intent.addFlags(int num);
This helps to add additional flags to a particular intent with the existing values.this also returns the same intent object for chaining multiple calls into a single statement.