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 can I use a java file without registering it as the main activity in the manifest?
Forum Updated to NodeBB v4.3 + New Features

How can I use a java file without registering it as the main activity in the manifest?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 430 Views 1 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.
  • M Offline
    M Offline
    Mena
    wrote on last edited by
    #1

    I can use JNI to issue a notification using a java file. The only way I can do that is by replacing the activity line in the manifest like so:
    From:

    <activity android:name="org.qtproject.qt5.android.bindings.QtActivity" >
    

    To the path for the java file:

    <activity android:name="org.qtproject.example.notification.NotificationClient" >
    

    or else the notifications won't show up!

    What if I want to Use more than one Java file to do other stuff using JNI?
    How can I add more than one activity in the manifest?

    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