title: Widget-only app: Default Activity not found
body: <p>I am creating a widget only application. </p>
  
  <p>The project was on older SDK versions and it was OK. </p>
  
  <p>Now when I downloaded the latest Android Studio bundle, it doesn't run my appilcation and it says:</p>
  
  <pre><code>Error running app: Default Activity not found
  </code></pre>
  
  <p>But I don't want any activity. I just want a simple widget, not any activity.</p>
  
  <p>I know a lot of people has asked this question but believe me, non of them had the answer to my question. </p>
  
  <p>p.s: If I add an activity and make it the default one by using the following code, it runs OK, but as I said I don't want any default activity. Is there any way?</p>
  
  <pre><code>&lt;activity
      android:name=".MainActivity"
      android:label="MyAppName"             &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
  
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Here is my manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.PerCalendar.perc"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="14"
          android:targetSdkVersion="18" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
           &lt;receiver android:name=".WidgetProvider" &gt;
              &lt;intent-filter&gt;
                  &lt;!-- This widget provider receives broadcast with following action name or simply onUpdate of AppWidgetProvider is called --&gt;
                  &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt;
              &lt;/intent-filter&gt;
              &lt;!-- linking up xml file of appwidget-provider to AppWidgetProvider --&gt;
              &lt;meta-data
                  android:name="android.appwidget.provider"
                  android:resource="@xml/widget_info" /&gt;
          &lt;/receiver&gt;
  
          &lt;service
              android:name=".WidgetService"
              android:permission="android.permission.BIND_REMOTEVIEWS" /&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>