My simple 'Night Mode' extension

There is no need for a new block.
Just check at screen initialize which result you get.
Because when the mode is changed the app is restarted automatic by the system.

3 Likes

Thanks!
I did not think about it :sweat_smile:

1 Like

Hello dear Mika
It would be great if you could create an extension for the night and day mode.

If night mode return false then day mode active.

2 Likes

Hi
Which so far dark mode Extention make?


:sob:

I don’t think this extension would work with app inventor, because app inventor uses the new androidx support library, but it looks like the extension is still using the old support library, which won’t work, except in kodular.

3 Likes

Oh… A few months ago this extension was working… Thank you for your answer

1 Like

You’re welcome

Because app inventor wasn’t yet updated to support the new support library.

1 Like

:joy::joy::joy::joy::joy::joy::joy:

Very practical and useful
To upgrade the work level

Nice good.
This help me so much
Thank you!!

Hellooo,
Since Kodular updated its libraries, the extension no longer works :cold_sweat:
The people need you @Mika!

1 Like

You can meanwhile recast the extension:

2 Likes

I used Recast to make the extension compatible with Kodular Fenix. I am giving it to you here for you to use, it will be faster than installing Recast
NightMode.aix (5.3 KB)

4 Likes

Running results in:

Runtime Error
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/AppCompatDelegate;

With this code:

This also happens in the demo AIA. Any help?

They dropped support for android support libraries.

Thanks, but is there any way of fixing it? Else there would just be no dark mode support at all.

Try this one :point_down:

2 Likes

Thanks, that worked! I must have missed that version :sweat_smile:

1 Like