Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/atouchof/public_html/flathead/JWS/inc_db_helpers.php on line 5
Random bits of code - Flathead Games
Flathead Games

JNI method signatures
May 26th, 2016
Since I couldn't find the answer to this anywhere online, here's some code.

package com.flathead.MYFWPackage; public class MYFWActivity extends Activity { private IAPManager m_IAPManager = null; public IAPManager GetIAPManager() { return m_IAPManager; } }

To call GetIAPManager() from C++, we need it's function signature, which is:


it would be used by the following C++ code:

jmethodID getIAPManager = g_pEnv->GetMethodID( activity, "GetIAPManager", "()Lcom/flathead/MYFWPackage/IAPManager;" );
No comments Leave comment
Login to comment on news