Webview timeout

Milch

New Member
Hello everybody. I am a PHP programmer and just discovered Basic4android and it looks like a good tool for android development. However i still have some problems because everything is slightly different than in PHP :) Ok enought of that let's get to the point here. I am working on one basic app right now just to get a better view to b4a and i am wondering whats the default timeout for webview? For example I want to display one webpage in webview and if everything works as it should webpage is displayed but what if server is down or website is not available right now? How can i set for example timeout to 5 seconds? So if webpage is online it will open and if webpage is not available it will try to 5 seconds and if still is not availabe a simple text for example will appear (Service is down) in label box or anything like that? Any suggestions? Sorry maybe it is stupid question but didn't really find a solution here.
 
Top