California Bicycle Rights and Wrongs
Bicyclist Rights (CVC 21200) Bicyclists have all the rights and responsibilities of vehicle drivers.
Alcohol and Drugs (CVC 21200.5) It is against the law to ride a bicycle while under the influence of alcohol or drugs.
Use of the Roadway (CVC 21202) Bicycles traveling slower than the normal speed of traffic must ride as close to the right side of the road as practicable except: when passing, preparing for a left turn, to avoid hazards and dangerous conditions or if the lane is too narrow.
Bicycle Lane Use (CVC 21208) Bicyclists traveling slower than traffic must use bike lanes except when making a left turn, passing, or avoiding hazardous conditions.
Helmets (CVC 21212) Bicyclists and passengers under age 18 must wear an ANSI or Snell approved helmet when a passenger or riding upon a bicycle.
Direction of Travel (CVC 21650) Bicyclist must travel on the right side of the roadway in the direction of traffic.
Head Phones (CVC 27400) Bicyclists may not wear earplugs in both ears or a headset covering both ears, except hearing aids.
Bikes are expected to act as cars (stopping at lights and signs, signally turns and lane changes, yielding to pedestrians). Don't ride on the SIDEWALKS, its not safe for pedestrians, its in fact illegal in most places, and a large percentage of bike related accidents take place at sidewalk/street intersections.
for more bike laws click this link