You need to prepare
Our final thoughts on the matter
Buying a house after bankruptcy really all depends on three major things:
1) How good is your credit?
2) How much have you saved towards a down payment?
3) What is your income level?
As you're probably well-aware at this point, the name of the game is perfect-timing. And until the time is right, you have plenty of work to do. Rebuilding your credit score, saving as much as possible for a down payment and making sure you're looking at houses that are within your means are your top priorities right now. As a rule of thumb, you shouldn't accept a mortgage that is more than 30% of your annual income. This ensures that you don't spend outside of your means.
Remember, you don't want to be in the same situation you were once in. And we have to agree with Dave on the emergency fund topic. You need to make sure your emergency fund is fully padded for the hard times before you start saving up for a house. Come up with a plan, stick to a budget, discipline yourself when times are good and make sure you live within your means - if you do this, you'll find the outcome a lot better this go-round.