-1

I'm trying to run sample for Sony site.

I attached SmartExtensionAPI and SmartExtensionUtils. I used Properties->Android->Library and checked is library.

When I ran a sample (for example HelloWidget) on Eclipse, I get this error on the console:

HelloWidget] No Launcher activity found!
HelloWidget] The launch will only sync the application package on the device!

But the installation is done... I can see the application is installed on my smartphone and I can see too on SmartConnect but not in the smartwatch.

Does anyone have an idea of what I'm doing wrong ?

EDIT:

AndroidManifest.xml

<activity android:name="com.example.sonymobile.smartextension.hellowidget.HelloWidgetPreferenceActivity"
            android:label="@string/preference_activity_title" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" /> 
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
</activity>
Sufian
  • 6,405
  • 16
  • 66
  • 120
user2202087
  • 49
  • 1
  • 1
  • 8
  • You sure that `HelloWidgetPreferenceActivity` is in the correct package, i.e `com.example.sonymobile.smartextension.hellowidget.HelloWidgetPreferenceActivity`? – Sufian Jun 20 '14 at 06:01
  • Could you try uninstalling the app (from device), clean build (from Eclipse) and then run/install (from Eclipse) it on your device. – Sufian Jun 20 '14 at 10:02

1 Answers1

0

This is because no activity had set as a launcher to run when app is launched

  <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>

no intent filter will be there in the code's manifest, just check it.

Meenal
  • 2,879
  • 5
  • 19
  • 43