Change user-agent. Set connnection=close only on Android 2.3 or older.
Set user-agent for crash post.
Fix for potential problem on API level < 9.
Fix missing import.