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. How to start a second activity in Android
Forum Updated to NodeBB v4.3 + New Features

How to start a second activity in Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 378 Views 2 Watching
  • 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    My, my class called NFCInterface does not starts as activity when my app starts.
    I have added these lines in the AndroidManifest.xml file but the lines don't be considered. What it is wrong?

        <activity android:name="it.labcsp.handyman.handymantouch.NFCInterface" >
            <intent-filter>
                <action android:name="android.nfc.action.TAG_DISCOVERED"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
    
    

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    Gojir4G 1 Reply Last reply
    0
    • mrdebugM mrdebug

      My, my class called NFCInterface does not starts as activity when my app starts.
      I have added these lines in the AndroidManifest.xml file but the lines don't be considered. What it is wrong?

          <activity android:name="it.labcsp.handyman.handymantouch.NFCInterface" >
              <intent-filter>
                  <action android:name="android.nfc.action.TAG_DISCOVERED"/>
                  <category android:name="android.intent.category.DEFAULT"/>
              </intent-filter>
          </activity>
      
      
      Gojir4G Offline
      Gojir4G Offline
      Gojir4
      wrote on last edited by Gojir4
      #2

      @mrdebug Hi,

      Does your NFCInterface class inherits from QtActivity ?

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        It works but only one time.
        After the first ufc event the app goes to freeze here

            @Override
            protected void onResume() {
                super.onResume();
        

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        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