Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid.content.ActivityNotFoundException: Unable to find explicit activity class {nco.surt/android.net.wifi.WifiConfiguration$Status}
    primarykey
    data
    text
    <p>i am getting this error when ever i try to click a button:</p> <pre><code>public class NncActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b = (Button) findViewById(R.id.loginButton); b.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(NncActivity.this, Status.class)); } }); } } </code></pre> <p>i have added </p> <pre><code>&lt;activity android:name=".Status"&gt;&lt;/activity&gt; </code></pre> <p>to the Manifest exactly after the first <code>&lt;/activity&gt;</code> but i am still getting that error!</p> <p>anyone has any idea why?</p> <p>this is what the Logcat shows</p> <pre><code>&gt; threadid=1: thread exiting with uncaught exception (group=0x40015560) FATAL EXCEPTION: main android.content.ActivityNotFoundException: Unable to find explicit activity class {nco.surt/android.net.wifi.WifiConfiguration$Status}; have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379) at android.app.Activity.startActivityForResult(Activity.java:2827) at android.app.Activity.startActivity(Activity.java:2933) at nco.surt.NncActivity$1.onClick(NncActivity.java:23) at android.view.View.performClick(View.java:2485) at android.view.View$PerformClick.run(View.java:9080) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3683) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>please help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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