California uses a "domicile" system, which means that it considers a person to be a resident if they have a true, fixed, and permanent home in California. To establish domicile in California, a person must have both physical presence in the state and an intent to make California their permanent home.
For more information on California's requirements, you should contact the California Franchise Tax Board.