Police have confirmed the woman to be Ana Flores-Pineda, 25, from Stockton. Her body was found inside a trash container on Dublin Canyon Road on May 24.
Police detectives from Pleasanton and Stockton arrested Javier Prado Sandoval, 20, also from Stockton.
Investigators determined Flores-Pineda was the victim of a homicide that occurred in Stockton. Pleasanton police Sgt. Kurt Schlehuber said Flores-Pineda had been in the garbage can for "a few weeks."
A missing persons report led Stockton police to the body found in Pleasanton, Schlehuber said.
"Through their investigation, they contacted the Alameda County Coroner who confirmed they had an unidentified Jane Doe," he said. The body was linked to Flores-Pineda through DNA analysis.
Sandoval was to be booked into the San Joaquin County Jail. The investigation is ongoing and further details regarding this case will be released at a later date.