That daily routine is one of the main reasons Mr. Joko, a reed-thin former furniture dealer, has almost overnight shot to the top of the polls about possible candidates for next year’s presidential election. In late August, the country’s most influential daily newspaper, Kompas, displayed his photo on its front page three days in a row along with poll results showing him with nearly double the support of the closest challenger, a retired Army general. The poll also found he had swept past the leader of his own party: former President Megawati Sukarnoputri, a famously imperious leader who sometimes referred to her supporters as “little people.”

“He’s the opposite of the leaders we have now. He doesn’t fit the mold at all,” said Bhimanto Suwastoyo, chief editor of the online Jakarta Globe. “The mold is: an Indonesian official does what he wants, has no connection with the people and doesn’t consult — he rules. Jokowi is doing the exact opposite. He’s hands on, he asks the public what they want, he approaches them and he’s seen as actually doing something.”

What Mr. Joko has accomplished in his first year leading the capital is not high-profile. In fact, people give him at least as much credit for what he appears not to have done. In a country rife with corruption, Mr. Joko is widely considered a clean politician who has not used his office to enrich himself, and who is working hard to cut down on corruption within the government.

The issue of official corruption is expected to be a major factor in the election, the third direct presidential election since the country threw off autocratic rule 15 years ago.

The economy has been doing well — it survived the world’s 2008 financial crisis virtually untouched, multinationals have been flocking here and its gross domestic product has expanded at a steady rate of more than 6 percent for the last three years. Still, analysts consistently say Indonesia is being held back from reaching its full potential because of corruption and collusion among government officials, lawmakers and powerful business interests.