Android native extension: Unable to find explicit activity class

T Tobias Kiefer 3 years ago
0 1 0

Hi everyone,

I want to start a custom Activity using a native extentsion.

For doing so, I create an Intent and start the Activity on the rhodesActivity:

RhodesActivity ra = RhodesActivity.safeGetInstance();
Intent intent = new Intent(ra, com.rho.demoextension.TestActivity.class);
ra.startActivity(intent);

However, I receive the following error:
exception: Unable to find explicit activity class {com.company.product/com.rho.demoextension/TestActivity}; have you declared this activity in your AndroidMaifest.xml?

I registered the TestActivity in the ext/platform/android/ext_java.files by adding the line ext/platform/android/src/com/rho/demoextension/TestActivity.java

Also, I added to the ext/platform/andoid/AndroidManifest.xml

Do I need to register the Activity somewhere else? What am I doing wrong?

Any help is appreciated. Thanks in advance.

Best regards,
Tobi

Edit1: If I remove the line from the manifest the same error occurs

Please register or login to post a reply

1 Replies

T Tobias Kiefer

ok, got it:

The ext/platform/andoid/AndroidManifest.xml seems to be ignored completely
Instead, I had to declare the activity in AndroidManifest.erb in the project directory.

thanks anyway

CONTACT
Can’t find what you’re looking for?