Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Exchanging data between Android Activity and Qt cpp



  • This is my native cpp function

    void OnNFCState(jstring Value) {
       Environment->GetStringUTFChars(Value, nullptr);
    }
    

    and this is the java side

    private static native void OnNFCState(java.lang.String Value);
    

    The app goes to crash at the line

     Environment->GetStringUTFChars(Value, nullptr);
    

    How can I have a QString from java.lang.String?
    Is jstring corresponding to java.lang.String?


Log in to reply