The camera preview is blank

view story

http://stackoverflow.com – I have researched for a few days now and my last resort is to ask others that know way more than I do. I having been following tutorials and code picked up along the way. I have not been able to perform the simple function of creating a camera preview. I am not interested in saving snap shots, just simply viewing the onboard camera in an app. Any help would be greatly appreciated. My ultimate goal is to have a preview of an IP camera. Is ther a full code out there for this application that I canplay around with or can someone let me know why this code does not work? Here is the main: (HowTos)