Set up a Vodafone Smart 858 (Huawei U8160) for Android development with Eclipse and the Android SDK using Windows 7
After my Eclipse and SDK environment were ready to develop Android applications in Windows 7, I wanted to use my Vodafone Smart 858 telephone for development. This is a very inexpensive and uncomplicated device that is perfect for a first-time developer.
The first thing to look for according to the Google Android device documentation is the availability of a Windows USB driver for ADB.
ADB stands for the Android Debug Bridge, a way to communicate with Android devices for development.
The ADB Windows driver for the Huawei 8160 is available right in the telephone’s ROM. All you need is to do is to connect the telephone to your development laptop and enabling it for development.
This is what I did for the Huawei 8160 (Android 2.2.1)
- From the telephone, I selected ‘Settings’ and then the option ‘Development’ followed by checking; ‘USB Debugging’
At this point, there will be a confirmation message:
“Allow USB Debugging”
USB Debugging is intended for development purposes only. It can be used to copy data between your computer and your device, install applications on your device without notification, and read log data.
- Click OK. When this is done, there is a new icon visible at the top of the screen to indicate that the device is in debug mode
- Also, make sure to turn on the ‘Stay awake’ option for the duration of your development session
- A notification about a new unrecognized device will appear that needs the Android USB adb driver.
- From Windows, select Start->Computer, right click and choose ‘Manage’
- This opens Computer Management. When you click on Device Manager to the left, you will see a node containing ‘Other Devices’ to the right:
- The Huawei 8160 appears as ‘Torres’. Simply right click on its icon and select ‘Update Driver software’. This will give you two options:
- Browse the internet for a driver
- Look for the driver at the PC
- I chose the second option and provided the built-in CD-Rom drive contained in the Huawei as the installation directory as the souce. This drive is also labelled ‘CD Drive <drive letter> Mobile partner’
After this is selected, the new driver installation confirmation appears with this message:
Windows has successfully updated your driver software
Windows has finished installing the driver software for this device
Android Composite ADB Interface
Your telephone will now have its own driver class as follows:
Devices ->Android Phone->Android Composite ADB Interface
This class is only active while the phone is connected to the PC and only while it is in USB debugging mode.
- From the command line in Windows 7, you can issue the command adb to confirm that the device is being recognized for Android SDK development:
- From the command line change to the directory where the Android SDK is installed:
CD C:\Program Files\Android\android-sdk
- Change to the platform-tools folder and run this commands:
Cd platform-tools Adb devices
This results in a message like this:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
<device ID of my phone > device
The daemon in question runs from the adb.exe application. If you see your device listed this way, it is ready to receive any application you compile from Eclipse.
For other telephone and tablet models, follow the links and instructions available at:
Next, we will compile and deploy an Android project to this device using Eclipse