A 22-year-old woman was charged with attempted homicide after shooting her best friend during an argument inside a York County home early Wednesday, leaving him in critical condition, police said.