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. [Android] Pass info to MainActivity from C++ side
Forum Updated to NodeBB v4.3 + New Features

[Android] Pass info to MainActivity from C++ side

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 161 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.
  • J Offline
    J Offline
    Juan Garcia
    wrote on last edited by
    #1

    Is there any way to pass some params (or gather in any other way) from C++ to MainActivity when building Android app? I'm need to setup an Android SDK on MainActivity (onCreate method) and need some credentials which are calculated on my C++ side. If there is no way to do that via params, would be also useful to me another way.

    This is my Java class signature:

    public class MainActivity extends QtActivity {
    ...
    }
    

    Thanks in advance.

    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