Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - CytraL

Pages: 1 [2] 3 4 5
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!

17
General / Re: [Android] Keyboard issues
« on: June 07, 2015, 12:32:05 am »
Quote
Do you mean typing? You should receive events. Or are you talking about the keyboard being visible?
I talking about keyboard being visible.

I probe the commit and have this results:
on Android v4.0.4 (Warning)
Code: [Select]
06-07 00:23:57.288: W/dalvikvm(27363): JNI WARNING: DeleteLocalRef(0x1d2001ce) failed to find entry

on Android v5.1.1 (Crash)
Code: [Select]
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

Thx for reply!

18
General / [Android] Keyboard issues
« on: June 06, 2015, 04:34:28 pm »
Hi! i have a problem with keyboard... in some devices when i show the keyboard it get stuck... you can't type anything (or very laggy)... :\

Other... it's possible know when the user active the keyboard? It's possible show a only numbers keyboard?

Thx!


For show keyboard:
Code: [Select]
sf::Keyboard::setVirtualKeyboardVisible(true);
For get input:
Code: [Select]
    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);
            }
            }
        }
    }

19
Graphics / Re: sf::Texture to sf::Image
« on: June 01, 2015, 07:20:55 pm »
Ooooppps!! i see te documentation but don't see these function hehe :( :P  Thx!!

eXpl0it3r the problem is that i load all how sf::Texture why all calls in SFML require a sf::Texture... ¿is best preload with sf::Image and use sf::Texture when call a function? thx for all ;)

I need array of pixels for save it into a file.


P.S: Sry for my bad english

20
Graphics / sf::Texture to sf::Image
« on: June 01, 2015, 07:02:37 pm »
HI! its possible get a sf::Image from a sf::Texture?? or best... its possible get the array of pixels of the texture without using sf::Image?

Thx!

21
xDDD :P Teeworlds rlz!

My nickname is "unsigned char*", but i play in DDRace/DDNet servers :B

P.S: Very nice see that here exists ppl that play Teeworlds :D

22
SFML projects / Re: [Android] TWEditor (Online 2D Map Editor)
« on: May 14, 2015, 06:40:14 pm »
OK, finally i released this APP :) more info here: https://twmapeditor.wordpress.com

23
SFML projects / Re: [Android] FingerShip (The challenge of 20 meters)
« on: April 27, 2015, 06:11:22 pm »
Hi! i released the sources of this game... https://github.com/CytraL/FingerShip

24
General / [Android] Custom Native Activity
« on: December 01, 2014, 01:22:38 am »
Hi, its possible create a custom NativeActive?

Something like this...?

AndroidManifest.xml
Code: [Select]
<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>


FingerShipNative.java
Code: [Select]
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);
}
}

My Project:


I get this error:
Code: [Select]
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.

25
General / [Android] Google Play Game Integration Problem
« on: November 28, 2014, 09:39:51 pm »
Hi! i try to integrate GPG (Google Play Games) in my app... i downloaded gpg-sdk and setup it following these steps:

1. Copy "include" in to "sfml/include" installation
2. Copy "lib/c++/armeabi" in to "sfml/extlibs/lib/armeabi"
3. Modify "sfml/extlibs/Android.mk":
Code: [Select]
# 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)

4. Modify the "Android.mk" of my project:
Code: [Select]
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

All compile fine... but have execution errors.. the code:
Code: [Select]
gpg::AndroidPlatformConfiguration platform_configuration;
platform_configuration.SetActivity(((ANativeActivity*)m_pWindow->getNativeActivity())->clazz);
StateManager::InitServices(platform_configuration, nullptr, callback);

The error:
Code: [Select]
11-28 21:14:39.939: E/GamesNativeSDK(15545): A method from AndroidInitialization must be called for an AndroidPlatformConfiguration to be Valid.

Any know why happens this? thx :\

26
SFML projects / Re: [Android] TWEditor (Online 2D Map Editor)
« on: November 26, 2014, 10:41:38 pm »
Fixed! thx! ;)

27
SFML projects / Re: [Android] FingerShip (The challenge of 20 meters)
« on: November 26, 2014, 07:03:24 pm »
I made a update yesterday fixing bugs and adding new stuff.... perhaps now works :S

Preview:

28
SFML projects / [Android] Teeworlds Map Editor (Online 2D Map Editor)
« on: November 26, 2014, 06:53:41 pm »
Hi! i present here my project... it's under development (more news: https://twmapeditor.wordpress.com)... this is a tool for map makers of Teeworlds game.

With this app you can create or modify teeworlds maps online or offline... it can open/write .map files, render maps, connecto to teeworlds servers,... and other map maker stuff. I needed modify the SFML API a bit for get "ANativeActivity" and know the default folder for save edited and downloaded maps.

The app uses the 'native' teeworlds network implementation. For use it you need run a modified teeworlds server called "mapper" for connect it from this app and edit map collaborative (Up to 16 clients).


29
SFML projects / Re: [Android] FingerShip (The challenge of 20 meters)
« on: August 24, 2014, 04:35:16 pm »
@Geheim Thx for your interest and sry...

@AlexAUT Ummm is good know that SFML only works on Android 4.1+... perhaps its good modify the AndroidManifest and change the "minSdkVersion" value. Thx for the info.

--------------

Ok i try it on my tablet with Android 4.0.3.. it works randomly times...

@Geheim try to run it again... and again.. and again... xDD it finally works! :P

30
SFML projects / [Android] FingerShip (The challenge of 15 meters)
« on: August 24, 2014, 06:37:43 am »
Hi ppl! I show this little game around here ... it's my first game for mobile: P

The game consists of traveling 15 yards without dying and get the highest score possible.

Currently in beta, so strangers can happen ...

Download: https://play.google.com/store/apps/details?id=es.redneboa.fingership

Preview:


--
Sry for my bad english.

Pages: 1 [2] 3 4 5