Okay, assuming that you had nothing to do with this, the AVO may be of concern depending on the circumstances. In general, when you consider a persons history, it's not just the history alone, but also whether or not that history relates to the type of offence that is alleged. So in this case, if the broken window came about after some kind of domestic dispute that was for example heard by neighbours who called the Police, then it would be likely that an AVO would be given consideration.
However if the crime was random, for example someone reported that a car drove by and someone threw a rock, no domestic, no argument heard, then you have AVO vesus random property damage which is two different types of behaviour. So if you have no links to the property or the people who live there, the AVO would likely be given much less weight in this case.
With all of that said, if you have been charged for smashing a window, then surely the Police must have something more than "we saw him in the vicinity, so he's the one."