Creating a new custom android activity not possible [solved]
-
wrote on 1 Feb 2014, 12:40 last edited by
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.
-
wrote on 2 Feb 2014, 13:32 last edited by
Did you try calling the static method from JAVA?
You should verify your java code first. -
wrote on 2 Feb 2014, 16:20 last edited by
Well yes I first developed everything with eclipse and then copied the file into my Qt project.
-
wrote on 15 Mar 2014, 13:22 last edited by
ok i've got an answer. Just look at this:
http://qt-project.org/forums/viewthread/37317/