Debugging on the OUYA

AnticitizenAnticitizen Posts: 19Member
edited January 2013 in ODK (OUYA Developer Kit)
Simplest way I can ask this question: Is there a tutorial anywhere of how to debug on the OUYA the same way you debug on an Android device? Preferably using Eclipse IDE?

When I work on apps for an Android phone or tablet I can simply plug the device into my computer and debug/run with the push of one button in Eclipse. This does not seem to work with OUYA. I don't like the idea of having to create an .apk and then manually use adb from command line to push to OUYA every time I want to test a new change. Right now I'm leaning towards just setting up a test environment on my tablet and then only using the OUYA when I'm ready to test gameplay using the controller.

Does anyone have a good system set up for debugging directly to the OUYA?
Post edited by Anticitizen on

Comments

  • SueseSuese Posts: 120Member
    As much as I've been hating on Eclipse OUYA debugging on the device worked perfectly out-of-the-box. Check your physical connections.
    TheSuese.com - Elite Developer Backer
  • AnticitizenAnticitizen Posts: 19Member
    Suese said:

    As much as I've been hating on Eclipse OUYA debugging on the device worked perfectly out-of-the-box. Check your physical connections.

    So it was just something like plug in, debug from eclipse, and it showed up directly on the tv?

  • chamberlinchamberlin Posts: 51Member
    Hi! Debugging from within Eclipse should work the same as with any other Android device. You shouldn't need to manually run any adb commands.
  • AnticitizenAnticitizen Posts: 19Member
    Ok thanks for the response I will try it next chance I get. I couldn't get the iap-sample-app to work that way so I went to the readme.txt file. Those instructions only show how to use adb (which I also couldn't get to work). Maybe I'll try debugging the sample game or the controller sample app.
  • ClowenClowen Posts: 46Member
    edited January 2013
    @Anticitizen make sure you place the following in your Activity tag in your manifest:
    category android:name="ouya.intent.category.GAME"
    Post edited by Clowen on
  • ClowenClowen Posts: 46Member

    <activity>
    ...
    <category android:name="ouya.intent.category.GAME"/>
    </activity>

  • ClowenClowen Posts: 46Member
    Pardon me, still learning the formatting in this forum.
  • ClowenClowen Posts: 46Member
    Look here:
    https://github.com/ouya/docs/blob/master/setup.md

    Under
    Developing with the ODK
  • SueseSuese Posts: 120Member


    So it was just something like plug in, debug from eclipse, and it showed up directly on the tv?

    Yes, that's how it worked.
    TheSuese.com - Elite Developer Backer
  • AnticitizenAnticitizen Posts: 19Member
    How do you make eclipse recognize OUYA as an android device? Right now when I try to debug the controller test app it asks me if I want to create a virtual device. It's definitely plugged in, but just not getting recognized.
  • You need to install the driver.
    For windows 7:
    forums.ouya.tv/discussion/comment/1322/#Comment_1322
    Follow the instruction give by Ayrik
  • AnticitizenAnticitizen Posts: 19Member
    That worked. Thanks for the help.
  • nocompnocomp Posts: 2Member
    hey I'm having the same problem getting eclipse to recognize the device and I tries everything on the forum but still not working. I'm running windows 7 64 bit any idea?
  • vinfangvinfang Posts: 8Member
    http://forums.ouya.tv/discussion/247/installation-instructions-for-the-windows-side-adtodkjdkdrivers#latest

    I followed this thread's instructions and I was able to get it to run on the ouya through eclipse by right clicking on the Android project and choosing Run As -> Android Application.
Sign In or Register to comment.