If your Android phone has a decent internet connection and wants to go online via your computer using this connection, here is a quick and very simple solution. It does not require a rooted device; the only things you needed are an Android Phone with Internet connection, a computer, small software PDAnet and a USB Cable for your phone.
Getting started with PDAnet is very simple:
Note: Free edition of PDAnet limits secure sites. For example, you cannot access secure sites like Gmail. Full edition require $15 to purchase.
PDAnet is also available for other phones such as Blackberry, iPhone and Windows Phone and can also use on Mac OSX.