adding network related code in android app and created controller activity