我试图从另一个活动中调用一个活动。
但我收到此错误:
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 {