0

I am not able to run on my android tablet. I have been following the Android training link It says

To run the app from Eclipse:

  1. Open one of your project's files and click Run from the toolbar.
  2. In the Run as window that appears, select Android Application and click OK.

But when I do the same , I do not see anything on my Motorola Xoom Tablet.

I have checked the following link for Setting up USB drivers. As per the link , I have confirmed that device is connected.

When plugged in over USB, you can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you'll see the device name listed as a "device."

C:\Android\sdk\platform-tools>adb devices
List of devices attached
0380610842bf5157        device

Can anyone please advise where I am going wrong. What should I do to make my eclipse code run on android tablet.

joao2fast4u
  • 6,868
  • 5
  • 28
  • 42
misguided
  • 3,699
  • 21
  • 54
  • 96

3 Answers3

2

Do this

Click on The Project Root Folder >> Run as Android Project >> A device selection window will appear

Now select your device it will install application and start it

Note: as per your project setup

<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... >
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
    ...
</manifest>

Your device must have API Level >= 8

OR

You can take help from my answer here In which i have talked about several possibilities Running Android Application on Real Device

Community
  • 1
  • 1
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95
0

Thanks for the responses. I got this beautiful well detailed answer which resolved the issue

Actual Solution

Community
  • 1
  • 1
misguided
  • 3,699
  • 21
  • 54
  • 96
0

For me, it was all a matter of finding the right window in Eclipse.

Click "Window" -> "Show View" -> "Project Explorer". Then right click "MyFirstApp" from the menu on the left, then click "Run as" -> "Android application".

schulwitz
  • 1,651
  • 1
  • 13
  • 19