16
General / Re: [Android] Keyboard issues
« on: June 07, 2015, 08:10:11 pm »
ok if you need that i test any other update tell me!
Grettings!
Grettings!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Do you mean typing? You should receive events. Or are you talking about the keyboard being visible?I talking about keyboard being visible.
06-07 00:23:57.288: W/dalvikvm(27363): JNI WARNING: DeleteLocalRef(0x1d2001ce) failed to find entry
06-07 00:28:15.437: A/art(30841): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: DeleteLocalRef on global reference: 0x100ae2
sf::Keyboard::setVirtualKeyboardVisible(true);
while (m_Window.isOpen() && !m_CloseApp)
{
// Events
sf::Event event;
while (m_Window.pollEvent(event))
{
if (event.type == sf::Event::TextEntered)
{
int ckey = static_cast<char>(event.text.unicode);
if (m_pHotGUIEntity && m_pHotGUIEntity->getType() == CGUIEntity::EDITBOX && event.text.unicode < 128)
{
CEditBox *pEditBox = static_cast<CEditBox*>(m_pHotGUIEntity);
pEditBox->onTextEntered(ckey);
}
}
}
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="es.redneboa.fingership"
android:versionCode="12"
android:versionName="2.5" >
<......................>
<activity android:name=".FingerShipNative"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:configChanges="keyboardHidden|screenSize"
android:screenOrientation="portrait">
<meta-data android:name="android.app.lib_name" android:value="sfml-activity" />
<meta-data android:name="sfml.app.lib_name" android:value="fingership" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
package es.redneboa.fingership;
import android.app.NativeActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class FingerShipNative extends NativeActivity {
static final String TAG = "FingerShip";
private static NativeActivity me = null;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle)
{
AndroidUtils.showTooltipAlert(this, "Test...");
super.onCreate(icicle);
me = this;
}
public static void openURL(String url)
{
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
me.startActivity(i);
}
}
12-01 01:17:54.086: E/AndroidRuntime(25324): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{es.redneboa.fingership/es.redneboa.fingership.FingerShipNative}: java.lang.ClassNotFoundException: Didn't find class "es.redneboa.fingership.FingerShipNative" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
Thx.
# GPG
include $(CLEAR_VARS)
LOCAL_MODULE := gpg
LOCAL_SRC_FILES := lib/$(TARGET_ARCH_ABI)/libgpg.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_STATIC_LIBRARY)
LOCAL_STATIC_LIBRARIES := gpg
LOCAL_SHARED_LIBRARIES := sfml-system
LOCAL_SHARED_LIBRARIES += sfml-window
LOCAL_SHARED_LIBRARIES += sfml-graphics
LOCAL_SHARED_LIBRARIES += sfml-audio
LOCAL_SHARED_LIBRARIES += sfml-network
LOCAL_WHOLE_STATIC_LIBRARIES := sfml-main
#Zlib
LOCAL_LDLIBS += -lz
gpg::AndroidPlatformConfiguration platform_configuration;
platform_configuration.SetActivity(((ANativeActivity*)m_pWindow->getNativeActivity())->clazz);
StateManager::InitServices(platform_configuration, nullptr, callback);
11-28 21:14:39.939: E/GamesNativeSDK(15545): A method from AndroidInitialization must be called for an AndroidPlatformConfiguration to be Valid.