If you want the language DisplayName change
Return systemLocale.RunMethod("getLanguage", Null)
to
Return systemLocale.RunMethod("getDisplayName", Null)
First one gives me 'en'
Second 'English (United Kingdom)'
Thanks
@Daestrum, I need to identify the language with an id, getLanguage is the one I need.
My project is to make a B4X Ping, I have the B4A ready, the B4I halfway since I use
@Erel's iPing and I don't know if it works in a class.
I am trying to implement iPing from this post from @Erel . https://www.b4x.com/android/forum/threads/iping-send-and-receive-ping-icmp-packets.132440/ I don't know if a special permission is needed or what the problem is. If I solve this issue, I will have the B4X Ping ready. I am attaching the...
www.b4x.com
In the case of B4J, I did not find a native ping, just like B4A I am going to execute the CMD command with the Shell and capture the result. B4J becomes more complex because I depend on the language in which the operating system is installed.
ping paessler.com
Pinging paessler.com [104.16.182.252] with 32 bytes of data:
Reply from 104.16.182.252: bytes=32 time=4ms TTL=57
Reply from 104.16.182.252: bytes=32 time=4ms TTL=57
Reply from 104.16.182.252: bytes=32 time=4ms TTL=57
Reply from 104.16.182.252: bytes=32 time=4ms TTL=57
Ping statistics for 104.16.182.252:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 4ms, Maximum = 4ms, Average = 4ms
Haciendo ping a www.google.com.ar [172.217.173.227] con 32 bytes de datos:
Respuesta desde 172.217.173.227: bytes=32 tiempo=14ms TTL=116
Respuesta desde 172.217.173.227: bytes=32 tiempo=15ms TTL=116
Respuesta desde 172.217.173.227: bytes=32 tiempo=16ms TTL=116
Respuesta desde 172.217.173.227: bytes=32 tiempo=16ms TTL=116
Estadísticas de ping para 172.217.173.227:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 14ms, Máximo = 16ms, Media = 15ms
To solve this issue, I am making a json file with the different character strings for the RegEx, depending on the language. I will make a post later asking forum users to copy and paste the text in other languages to cover all possible languages.
Thank you for your collaboration