There is now a new jailbreak application available on Cydia which helps in extending battery life on iPhone 4, 3GS and 3G. Available by the name of Auto3G on BigBoss repository, this app basically turns off the 3G radio and switches to 2G (EDGE) when you lock your phone, and turns it back on as soon as you slide-to-unlock your phone again.