Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid.content.ActivityNotFoundException: Unable to find explicit activity class [greendroid]
    text
    copied!<p>I trying to do an application with greendroid but i've got a problem and i don't know how can i solve it... At this time, i have try everythin that i found on the web but nothing solve my problem...</p> <p>If anyone know what's wrong...</p> <p>MainApplication.java :</p> <pre><code>package com.example.testtt; import greendroid.app.GDApplication; public class MainApplication extends GDApplication { @Override public Class&lt;?&gt; getHomeActivityClass() { return MainApplication.class; } } } </code></pre> <p>MainActivity.java :</p> <pre><code>package com.example.testtt; import greendroid.app.GDActivity; import android.os.Bundle; public class MainActivity extends GDActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.activity_main); } } </code></pre> <p>and the manifest :</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.testtt" android:versionCode="1" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/Theme.GreenDroid" android:name="com.example.testtt.MainApplication"&gt; &lt;activity android:name="com.example.testtt.MainActivity" android:label="@string/title_activity_main" &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; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>And i've got this error :</p> <pre><code> 08-07 07:27:53.717: W/dalvikvm(631): threadid=3: thread exiting with uncaught exception (group=0x4001b188) 08-07 07:27:53.717: E/AndroidRuntime(631): Uncaught handler: thread main exiting due to uncaught exception 08-07 07:27:53.727: E/AndroidRuntime(631): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.testtt/com.example.testtt.MainApplication}; have you declared this activity in your AndroidManifest.xml? 08-07 07:27:53.727: E/AndroidRuntime(631): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404) 08-07 07:27:53.727: E/AndroidRuntime(631): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378) 08-07 07:27:53.727: E/AndroidRuntime(631): at android.app.Activity.startActivityForResult(Activity.java:2749) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload