Android Question Arabic phones problem

PassionDEV

Well-Known Member
Licensed User
Happy New Year every one , i have a simple issue i am trying to use the date of the phone to grab some information from a database

database date is in english which means if the phone date is in arabic the client cannot grab any data from the destination

i have tried to work around this because i ask this question before

so i added this line of code in the service create of the app

B4X:
Dim ju As JavaObject
   
    ju.InitializeStatic("java.util.Locale").RunMethod("setDefault", Array(ju.GetField("US")))

on some phone this works fine but sadly on phones that hold android 7 and above it does not help. the date output remains in arabic , what could be a solution in this case ?
 
Last edited:

PassionDEV

Well-Known Member
Licensed User
here is the actual problem if the app have only 1 activity , the date shows in english in arabic phones and no problems at all .

But

if the app has 2 activities and the date is in the secondary activity the date shows in arabic . this is another sample of the problem
 

Attachments

  • datetest2.zip
    22.1 KB · Views: 143
Last edited:
Upvote 0
Top