I'm trying to call one activity from another.
but I get this error:
Unable to find explicit activity class GoogleDriveProxeyActivity have you declared this activity in your AndroidManifest.xml
when executing:
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;
}
(//btw, how does sending a return value after startActivityForResult works if another action started?)
what am I missing in the manifest?
</activity>
<activity
android:name=".GoogleDriveProxeyActivity" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
update
my manifest package:
de.vogella.android.todos/AndroidManifest.xml
the problematic Activity:
package de.vogella.android.todos.contentprovider;
public class GoogleDriveProxeyActivity extends Activity {
Try to use the full name of your activity including the namespace:
<activity
android:name="com.sample.GoogleDriveProxeyActivity" >
...
</activity>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With