Washington (CNN) Former President Barack Obama on Wednesday offered up his advice for clear decision-making in the Oval Office -- avoid TV and social media, which only "clouds your judgment."

"What you have to do is to create a process where you have confidence that whatever data is out there has been sifted, sorted and the core issues that are going to be important to your decision, you're able to see it around," Obama said during an interview onstage at a technology conference in San Francisco.

"And that requires not just a good process but making sure you have a team that's got a diversity of opinion. The other thing that's helpful is not watching TV. Or, you know, reading, you know, social media," he said to a cheering crowd.

"So those are two things I would advise if you're president not to do, because it creates a lot of noise and clouds your judgment."

While Obama didn't name President Donald Trump in his remarks about TV and social media, Obama's successor is a prolific viewer of cable news and a frequent tweeter. Obama has occasionally criticized the President -- such as when Trump ended the Obama-era Deferred Action for Childhood Arrivals program and in the wake of Trump's first travel ban executive order -- but it is rare for modern presidents to criticize their successors. When referring to current news, Obama has frequently avoided using Trump's name.

Read More