What are the conditions that must be met for someone to benefit from an alternative detention?

Uganda

Under the Ugandan law the only alternative to pre-trial detention is a release on bail. Thus the grounds for a release on bail apply for an alternative to detention.