A lawyer can arrange with the investigating officer for an arrested person, charged with any offence such as those listed below, to be released on bail by the police at any time before his or her first appearance in court.
Police can set bail for most crimes such as:
Common assault
Theft (such as shoplifting)
Possession of cannabis
Drunken driving
Reckless or dangerous driving.

In some situations where the charge faced is very serious police bail is not possible.

In these situations you will be taken to the district court and be seen by the judge.