Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Creating a new custom android activity not possible [solved]



  • Hei there. I've tried to create a new custom android activity via QtAndroidExtras. I first call a static method from a java file. This method then tries to create the android activity via Intent.
    But Intent keeps triggering the Exception:

    activity class {org.schabi.vectiz/LoginActivity}; have you declared this activity in your AndroidManifest.xml?

    Thats strange. I've added the activity to my AndroidManifest.xml:

    @
    <activity
    android:name="org.schabi.vectiz.LoginActivity"
    android:label="Login" >
    <intent-filter>
    <action android:name="android.intent.action.LOGIN" />
    </intent-filter>
    </activity>
    @

    The LoginActivity.java file is lying in <project_root>/android/src.



  • Did you try calling the static method from JAVA?
    You should verify your java code first.



  • Well yes I first developed everything with eclipse and then copied the file into my Qt project.



  • ok i've got an answer. Just look at this:
    http://qt-project.org/forums/viewthread/37317/


Log in to reply