Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Creating a new custom android activity not possible [solved]
QtWS25 Last Chance

Creating a new custom android activity not possible [solved]

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    the_scrabi
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        the_scrabi
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • T Offline
          T Offline
          the_scrabi
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved