Not an exact duplicate because of my puppy's background.
So, I have an almost one year old puppy, some sort of Chihuahua+Terrier mix (8 lbs). I adopted her when she was 8 months old, and was advised that she had been moved from pound to pound (as an ambassador for events and such) for 5 months, meaning by the time she was 8 months old she'd been living in a shelter for most of her life. Nothing is known about her life before the shelter, so it's entirely possible that by the time she came into my life there had been no attempt at house-breaking her whatsoever.
So, now I have a one year old puppy whom I've been trying to house train for 4 months with little to no effect. She won't go to the bathroom in her crate (that's where I feed her), so that's a plus, but she seems to prefer to go in the house than to go outside. I'll wake up or get home and immediately take her from her crate to outside, where she'll pee and poop if I'm lucky. Typically she'll just run around until I have to bring her back in, at which point she'll immediately run off and poop in the corner. It might also be good to point out that she's on restricted water (only while eating or after exerting herself), but she still manages to pee... a lot.
She knows that she shouldn't be doing it, because she'll never do it if she knows I can see her and when I do find it she cowers/hides (even though I've never been aggressive towards her or even yelled).
What can I do? What's the trick? I'm starting to worry she'll never be housebroken.