If you have been charged with an offence you may be taken to the police station to be processed.
The police may grant you bail from the police station. This is not like on US television - you don't need to come up with money to get out.
There may be some conditions on you e.g. not to contact certain people or live in a certain place.
When you go to court the police bail bond becomes void. The Court may impose new conditions.
You are required to sign a bail bond. Many courts put you in custody to do so.
I always recommend clients to carry their bail bond on their person 24/7. If there is any dispute with police - and I've had many instances of the police computer saying something different to what I know the case to be, having the bail bond handy may keep you out of jail for the night.
Bail conditions are often agreed with the prosecution prior to appearing before the Court. However a magistrate or Judge has the right to add other conditions.
If you are refused bail or dispute the conditions you have a right to appeal and go to the High Court.
If you are refused bail you may apply for electronic bail. This involves you having a bracelet around your ankle and be monitored.
I have successfully obtained bail for clients with opposed bail in the District Court and High Court.