[Store] Intent Filter Error

I keep getting the following error when I upload an apk to the store:

"Apk error: package must accept one OUYA intent: tv.ouya.intent.category.GAME or tv.ouya.intent.category.APP"

I originally had it as ouya.intent.category.GAME, which seemed to work fine before the patch for getting the game listed under "Games". I changed it to have the tv. bit on the front, but I still get the error. I've tried with an exported/signed apk and the one I ripped straight out of the android bin folder in my eclipse project

I've had problems in the past with android manifest files refusing to update, so might just be that.

This is what my manifest file looks like:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.crystallinegreen.executivestar.alpha"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/ExecutiveStarTheme" >

        <activity
            android:name="com.crystallinegreen.executivestar.Launcher"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="tv.ouya.intent.category.GAME"/>               
            </intent-filter>
        </activity>
       
        <activity
            android:name="com.crystallinegreen.iridian.graphics.IridianGraphicsActivity">           
            <intent-filter>
                <category android:name="tv.ouya.intent.category.GAME"/>               
            </intent-filter>           
        </activity>
       
        <activity
            android:name="com.crystallinegreen.executivestar.TestGameActivity">           
            <intent-filter>
                <category android:name="tv.ouya.intent.category.GAME"/>               
            </intent-filter>           
        </activity> 
       
        <activity
            android:name="com.crystallinegreen.executivestar.TutorialActivity">           
            <intent-filter>
                <category android:name="tv.ouya.intent.category.GAME"/>               
            </intent-filter>           
        </activity>         
       
    </application>

</manifest>

Comments

  • SpoonThumbSpoonThumb Posts: 426Member
    Actually, I think when I changed the package name, it did not update parts of the manifest file. Have changed it back and hopefully, will upload correctly this time
  • BuddyBuddy Posts: 183Member
    Investigating...
  • SpoonThumbSpoonThumb Posts: 426Member
    I managed to upload a hello world app and submit it for review just now, so must be just my messing with the manifest and package name
  • BuddyBuddy Posts: 183Member
    Take out the OUYA intents from your non-main activity...  we expect there to only be one OUYA intent in the manifest.
  • SpoonThumbSpoonThumb Posts: 426Member
    Or it could be that I'm using an activity that isn't in the application package:

            <activity
                android:name="com.crystallinegreen.iridian.graphics.IridianGraphicsActivity">           
                <intent-filter>
                    <category android:name="tv.ouya.intent.category.GAME"/>               
                </intent-filter>           
            </activity>

    My TutorialActivity and TestGameActivity extend this class. It is my graphics engine, which is in the form of a jar file under libs in my project

  • nicknick Posts: 186Member, Administrator, Team OUYA
    @SpoonThumb let us know if removing the duplicate intents fixed it :)
  • SpoonThumbSpoonThumb Posts: 426Member
    Ok, looks like that might have solved it (taking the intent filter out of everything except the launcher activity)
  • BuddyBuddy Posts: 183Member
    <:-P
  • SpoonThumbSpoonThumb Posts: 426Member
    Downloaded and installed the JamesCooteTest app fine

    The Executive Star app uploaded fine this time round and I can see it in store. But I already had it installed when I went to play it the first time (as I'd side loaded it). I uninstalled via console/adb shell and selected to download it from store. The download got half way through before saying "unfortunately could not install the application." Tried again a couple of times more, but the download bar stayed at zero, with me selecting "cancel". Then about a minute later, I get two pop up notifications saying the "unfortunately could not install", one after another. At which point I tried fiddling with my ethernet plug, causing me to accidentally knock out the power lead and reset the OUYA (doh!)

    Tried again after the OUYA booted up again and it worked fine, installed and plays! \o/

    Also just as a note, when a game has just installed, neither of the "Done" or "Open" buttons are in focus / highlighted. I had to hit down on the left stick to get one of them to highlight

  • SpoonThumbSpoonThumb Posts: 426Member
    I also got an email to confirm when each of the apps was approved
  • DreamwriterDreamwriter Posts: 768Member

    Aw man, I finally got my game uploaded (took a half hour on my crappy internet) and my icon is in the wrong folder, though it works on the hardware in the Games list, so now I get to do it again.  Damn you drawable-xhdpi!

    Note, this is exactly the kind of thing that happens when uploading to Apple's app store, something *always* goes wrong on the first try (and second, and third...)

  • SpoonThumbSpoonThumb Posts: 426Member
    Hurry up man! My apps need some company! They're getting lonely! TBH, Anything's gotta be better than "Hello World" and my alpha build where I've not actually implemented the gameplay yet :S
  • DreamwriterDreamwriter Posts: 768Member
    edited February 2013

    How long did yours take to get approved?  I had figured it would be instant since they aren't doing reviews yet, but nope, not instant, my status is still "Submitted"

    Post edited by Dreamwriter on
  • SpoonThumbSpoonThumb Posts: 426Member
    I think someone at OUYA has to manually approve it, but that at the moment they'll approve anything since this is all just for testing. Maybe give one of them a poke on twitter?
  • DreamwriterDreamwriter Posts: 768Member
    Got approved! Now downloading my demo from the store (which is rather huge compared to your app).  BTW, I like your planet, looks good.
  • SpoonThumbSpoonThumb Posts: 426Member
    Thanks! Yeah Secrets of the Universe is taking a little bit of time to DL. Might have to wait till tomorrow as it's after midnight here
Sign In or Register to comment.