Bug export android ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pouet_forever
:warning: Old Version Published before Godot 3 was released.

Hello !

I have an app which work on my desktop, but when I want to export it to android, my script never enter in the ‘if’ and stop the function…
Here is a little example of my problem :

extends Node

onready var button = get_node("gui/button")
onready var label = get_node("gui/label")

func _ready():
	button.connect("pressed", self, "function", [button.get_name()])

func function(name):
	if name.ends_with("ton"):
		label.set_text(name) # Never executed
	label.set_text('bar') # Never executed

Here is a simple project : https://ufile.io/87401

Should I report it ?

How do you know your if is never called if you overwrite the label text just afterwards? Did you meant your label is never modified?

Zylann | 2016-09-22 12:48

Yes, my label is not modified. :slight_smile:

pouet_forever | 2016-09-22 13:46

If an error occurred on Android, you can see a log for it with adb logcat

volzhs | 2016-09-22 19:51

Ok, thanks.
All the functions in the String class don’t work (for me…) in an Android tablet.
Do you know an other function like ‘String.ends_with’ ?

pouet_forever | 2016-09-23 07:00

function is called? If no did you enable emulate_touchscreen in project settings?

lukas | 2016-09-25 13:22

Yes, function is called and emulate_touchscreen is enable.
It’s just the String class which don’t work.

pouet_forever | 2016-09-26 09:02