Bonjour,

Je viens de rencontrer un problème de redirection de vue, détaillé ci-dessous :

La ligne qui pose problème (en rouge) :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 private Context context = this;
[...]
private Runnable myThread = new Runnable(){

    	  public void run() {
    	   // TODO Auto-generated method stub
    	   while (d.loadPercent<100){
	    	   try{
		    	   myHandle.sendMessage(myHandle.obtainMessage());
		    	   Thread.sleep(10);
	    	   }
	    	   catch(Throwable t){
	    		   
	    	   }
    	   }
    	   Intent intent = new Intent(context, AccActivity.class);
    	   startActivityForResult(intent, 0);
    	  }
Et l'erreur en question :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.irdes.application/com.irdes.activity.AccActivity}; have you declared this activity in your AndroidManifest.xml?
Le souci est que j'ai bien déclaré mes Activity dans le AndroidManifest.xml :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.irdes.application"
      android:versionCode="1"
      android:versionName="1.0">
 
 
    <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/CustomTheme">
        <activity android:name="irdesApplication"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".AccActivity" />
        <activity android:name="irdesApplication" />
    </application>
</manifest>
Aurais-je oublié quelque chose ?