BBC News, Kampala
The Ugandan opposition leader Bobi Wine says he is withdrawing his court case challenging the results of last month's presidential election.
Bobi Wine, whose real name is Robert Kyagulanyi, alleges that the judges at the Supreme Court are biased.
He asked the court to overturn the results on multiple grounds, including fraud and the widespread use of violence.
The musician turned politician says that he will now take the matter to the court of public opinion, using non-violent means.
President Yoweri Museveni won a sixth term in office at the poll, with 59% of the vote.
More than 50 people were killed in violence ahead of the election.
Africa editor, BBC World ServiceCopyright: Getty Images
The UN has condemned an attack by the Ugandan security forces that left several journalists injured.
They were reporting on the opposition MP and musician Bobi Wine as he was highlighting allegations of human rights abuses in the country.
The police said security personnel were dispersing an uncontrolled crowd and said it was unfortunate that journalists were injured.
It comes amid growing concern at the ongoing clampdown against the opposition following President Yoweri Museveni's victory in a disputed election.
Videos show members of the Ugandan military police chasing after journalists and beating them with long sticks.
Some reporters were left with serious injuries including bleeding cuts to the head.
The brutal incident took place right outside the UN Human Rights Office in the capital, Kampala.
The media was there as Bobi Wine was about to meet officials to call for an investigation into rights abuses.
His party says a number of supporters are missing and alleges some have been tortured in detention.
It seems the Ugandan authorities fear the popular appeal of Bobi Wine.
But unarmed civilians being bludgeoned will give yet more publicity to the musician who says he joined politics to end oppression in Uganda.
Ugandan military and police are still deployed outside the house of opposition politician Bobi Wine despite a court ordering them to leave.
The army had initially said it would respect the ruling.
Bobi Wine has not left his house in the outskirts of the capital, Kampala, since voting in the presidential election 12 days ago.
He tweeted that the military was still blocking access to all his visitors.
Journalists working for the Daily Monitor newspaper say military and police deployments had been reinforced on the road leading to Bobi Wine's residence and checkpoints increased.
Two cars carrying journalists heading to home on Monday evening were stopped and ordered to go back.
Ugandan soldiers on Monday blocked the US ambassador from visiting the home of opposition presidential candidate Bobi Wine, a pop star whose real name is Robert Kyagulanyi, in the capital, Kampala.
Bobi Wine finished second in last week's election but rejected the results "with the contempt they deserve". President Yoweri Museveni - who won a sixth term - has denied reports of election irregularities.
A statement from the US embassy said the purpose of Ambassador Natalie Brown's visit was "to check on Mr Kyagulanyi’s health and safety, given that he’s effectively been unable to leave his home, with security forces surrounding his residence".
It said the ambassador "regularly meets with actors across Uganda’s political spectrum" as part of diplomatic engagement.
"We call on the Ugandan government to respect their citizens’ human rights and fundamental freedoms, including the freedom of expression, freedom of assembly and freedom of the press as provided for in Uganda’s own constitution," the embassy said.
Bobi Wine said his home remains cordoned by the military and he was not being allowed to leave.
Opposition candidate says he wants to dispute election - but is cut off from his advisors. Uganda is now in its fifth day of an internet blackout.
BBC News, Kampala
Vote counting is under way at some polling stations in Uganda's capital, Kampala.
An increased presence of security force members was seen in about the last hour before polls closed at 13:00 GMT.
Lorries carrying soldiers drove through the city, while police and local defence units were also seen patrolling.
In some areas, voting is continuing. Election regulations state that people in queues can vote after the official closing time.
President Yoweri Museveni, who has been in power for 35 years, is seeking re-election.
The 76-year-old faces 10 challengers, most notably Bobi Wine, the 38-year-old pop star-turned politician.
Ugandan presidential candidate Robert Kyagulanyi popularly know as Bobi Wine has ended a radio interview with a Kenyan station abruptly after he said the military had raided his house.
Mr Kyagulanyi was being interviewed on HOT 96 radio morning show when he said he had to go as he could see military officers beating up his security.
Some commotion could be heard in the background moments before he disconnected the call.
Journalist Jeff Koinange tweeted a link to the interview:
The singer-turned politician has in the past decried harassment from security officers in the run up to the 14 January elections.
His bodyguard was killed last month when he was run over by a vehicle belonging to the military police.
Five things you should know about the upcoming elections in Uganda.