1 Reply Latest reply on Aug 5, 2015 1:59 AM by Tobias Kiefer

    Android native extension: Unable to find explicit activity class

    Tobias Kiefer

      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 <activity android:name="com.rho.demoextension.TestActivity"></activity> 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