3

あるアクティビティを別のアクティビティから呼び出そうとしています。

しかし、私はこのエラーが発生します:

Unable to find explicit activity class GoogleDriveProxeyActivity have you declared this activity in your AndroidManifest.xml

実行時:

    private Uri saveFileToDrive() {
        Intent i = new Intent(this, GoogleDriveProxeyActivity.class);
                startActivityForResult(i, SAVE_TO_DRIVE);

                //btw, how does this work if another action started?
                return null;
          }

(//ところで、別のアクションが開始された場合、startActivityForResult の後に戻り値を送信する方法は?)

マニフェストで何が欠けていますか?

    </activity>
            <activity
        android:name=".GoogleDriveProxeyActivity" >
        <intent-filter>
                            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

アップデート

私のマニフェストパッケージ:

de.vogella.android.todos/AndroidManifest.xml

問題のあるアクティビティ:

package de.vogella.android.todos.contentprovider;

public class GoogleDriveProxeyActivity extends Activity {
4

3 に答える 3