Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActivityNotFoundException: Unable to find explicit activity class GoogleDriveProxeyActivity have you declared this

Tags:

java

android

xml

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 {
like image 361
Elad Benda2 Avatar asked Sep 14 '26 19:09

Elad Benda2


1 Answers

Try to use the full name of your activity including the namespace:

<activity
    android:name="com.sample.GoogleDriveProxeyActivity" >
    ...
</activity>
like image 111
Szymon Avatar answered Sep 16 '26 07:09

Szymon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!