Android: call the init class setContext() from JNI_OnLoad()


After making internal Java classes non-public, using the init
classes mechanism doesn't work, so do the initialization from
within the module's JNI_OnLoad() instead.

Amends 8e38a6ffcf0ac7c60e28b58a011af66abf7fb046.

Task-number: QTBUG-126478
Pick-to: 6.8
Change-Id: I370f9c9f860195a688f4e65db976d45e238a11b7
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit025020adf31f403db5f1d00fcd82494cea5cdf71
parentf2c70e93db216e299ed46d5cddf1a426484f9d97
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeMon, 19 Aug 2024 08:49:20 +0000