Delaware is not a prime choice for corporate filings due to its history in corporate law, it is the prime choice because it has low costs, few requirements on businesses incorporated in the state, and its existing corporate regulations are very management-friendly.
One thing that the original poster should note is that even if he incorporates in Delaware if he does most of his developement and operation in California then he will still be required to register as a foreign entity in California and pay CA franchise fees (and maintain a registered agent in CA.)
I short, go ahead and register in CA if you are not going to be seeking outside investment and will be operating in CA. Take a look at the various steps and advice at the following: http://live.prokhorenko.us/2009/04/how-to-incorporate-startu...
As always, this is where getting a professional involved is worthwhile. A lawyer or accountant who specializes in this sort of work can tell you what the various legal liabilities you'll have to deal with in each state are, as well as how your choices impact your tax liabilities.
[Edit: This previously had a sentence about code formatting in the submission; the formatting has since been fixed.]