Frankly speaking, there is no way. I was surprised when I kept looking through all the settings to find nothing on how to disable the screen time out in a Samsung Galaxy S2 phone. The screen time out only has options for 10 minutes at the most.
I hate screen time outs, hence the need to disable it. Keep Screen, an Android app is the solution for this. While it does not disable screen time outs in general, it will keep your phone from timing out on certain applications that you set not to time out.
The app is free. Last I saw, it said “for now” so better hope when you go to the Android Market and look for it, it is still free.
You might encounter an error message that says something like “Error 2### HY### Connection Time Out” in MySQL when importing huge backup files to your database. This totally perplexed me as I thought at first the problem came from within my backup file. Maybe the SQL statements were incorrect or something.
Turns out, you have to set max_allowed_packet = 32M in either your MySQL’s config file (my.cnf or my.ini) to increase the memory. You will then have no problems importing your file back to the database. Just remember, if it is a big file, it will take some time to finish importing everything.