There was time when I was trying to run my Android code to my device but it seemed not working. One of the things I thought that causes this was if my Android device is really connected or attached to my computer. So I had to verify if it was. I’m using windows, so here’s what I did:
1. Execute the command prompt (cmd.exe)
2. Go to your Android SDK platform-tools directory. I had to execute cd c:Program FilesAndroidandroid-sdk
3. Check if ADB is present by executing adb, if you got those data rolled down, ADB is working fine.
4. See if your device is attached by executing adb devices, You should see your attached devices which look like something like this:
Click to enlarge. |
This is also where you can execute the ADB logcat which will make your life easier when debugging your Android App. You can do that by executing adb logcat
So that’s it, you can now run your code from eclipse. :)