Activist chants patriotic song upon arrival in court