I am using native code to check for IAP purchases and need to store the results in the Preferences. When I store them in the Android SharedPreferences, the Codename one Preferences can't find it. Are they implemented differently? And if so, is there a way to either access the Codename One Preferences from native code? Here is the code I am using in the Android native code to store something in SharedPrefs:
SharedPreferences sharedPref = activity.getPreferences(android.content.Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("TIER_SKU", msg);
editor.commit();
But like I said. When accessing Preferences using the same key, it can't be found back in the Codename One code.