Search code examples
javaandroidandroid-intentgoogle-project-tango

No activity found to handle Intent android.intent.action.REQUEST_TANGO_PERMISSION (has extras)


I'm new to Project Tango and for now I'm trying to run the demo apps provided but I keep on bumping into this error message in both the motion tracking and area learning demo projects because I can't see that action be declared in the manifest file. I know this error complains about either the activity not being declared in the manifest but it is there. Do I need to have anything else installed on the device so this line doesn't make the app crash?

11-04 13:04:21.789: E/AndroidRuntime(2867): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.projecttango.motiontrackingjava/com.projecttango.motiontrackingjava.StartActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.REQUEST_TANGO_PERMISSION (has extras) }

This is how StartActivity is being declared on the manifest:

<activity
            android:name=".StartActivity"
            android:screenOrientation="landscape"
            android:icon="@drawable/ic_launcher">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

Solution

  • Everything you pasted in is correct. The issue seems to be an incorrect version of the TangoCore service. Please try to update your software via OTA.

    Edit for more information :

    The activity that is missing is a service that handles permissions needed by the Tango service, named Permission Manager. After updating ,via Settings -> About tablet -> System updates, you should have a this new application on your device. If you don't have this application you will not be able to run any Tango applications, as they all prompt the user for permission to run.

    The new permissions are for Motion Tracking, ADF saving/loading, and ADF import/export.

    More information can be found at the following link. Cheers!
    https://developers.google.com/project-tango/apis/java/java-user-permissions