mobilePick text color is different in Android 11?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

mobilePick text color is different in Android 11?

Post by trevix » Mon Feb 14, 2022 10:39 am

Hello.
I have been told that my standalone behaves differently, with regard to MobilPick command, in Android 11 devices.

In a Android 7 phone the menuPick displays the following window, which is correct:
IMG_3243.jpeg
In Android 11 (Xiaomi mi note 10) the same window is this, with white text over white background (which is unreadable):
Screenshot_2022-02-14-09-57-19-882_com.trevix.it.segnapunto.jpg
Does this has to do with dark theme?
But, more important, is there a way to have the same view on both system?

Thanks for any help.
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePick text color is different in Android 11?

Post by jacque » Mon Feb 14, 2022 8:54 pm

I suspect you're right that the problem is dark mode. The same thing used to happen on iOS until LC added a "Support dark mode" option in iOS standalone settings. That fixed it. Since Android has only recently introduced system-wide dark mode there is no support in the Android standalone settings for it. I think this will need a bug report.

For now the only workaround I can think of is to create your own picker as a group on the card. Not great, I know.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: mobilePick text color is different in Android 11?

Post by trevix » Mon Feb 14, 2022 10:06 pm

I tested the standalone on Android 11 emulator, set to dark mode in the OS setting, but the menu pick is just fine.
So, either this happens only on hardware, or there is something else to it.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePick text color is different in Android 11?

Post by jacque » Tue Feb 15, 2022 7:17 pm

I don't use the emulator because it's slow and it doesn't always reflect actual hardware. If you have an Android device, that would be a good test. But either way, a feature request in the QCC would be a good idea.

Mostly I don't use the mobile picker on Android because I think it looks ugly, so my experience is limited.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: mobilePick text color is different in Android 11?

Post by trevix » Thu Feb 17, 2022 2:01 pm

I have tried the same mobile pick on an android 12 phone and everything is fine, even in dark mode.
So, could this be related only to android 11 phisical devices (that I don't have) with dark mode enabled?
Anybody willing to try a test?
I there any fix we could implement, beside avoiding the mobile pick command?
Thanks
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePick text color is different in Android 11?

Post by jacque » Thu Feb 17, 2022 8:51 pm

I just tried it on a Pixel 6 running Android 12 with dark mode turned on, and mobilePick looks fine here too. I wonder if it is hardware-specific to the phone that particular user has? Or maybe the version of Android?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: mobilePick text color is different in Android 11?

Post by trevix » Sat Feb 19, 2022 8:45 pm

The android 11 guy confirmed that setting the dark mode to off, resolves the problem
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7229
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mobilePick text color is different in Android 11?

Post by jacque » Sat Feb 19, 2022 9:27 pm

Interesting. I wonder if it was a glitch in Android 11 that got fixed in 12. Like you, I no longer have OS 11 any more.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”