Hi Shai
i tried your advice  and invoked in start()
1 bright.brightset(255);  my app gives black screen
2 also when i  create the class new  my app gives a black screen
    bright = NativeLookup.create(Bright.class);
    bright.brightset(255);
3 when i add this one whwre as bright is first  time -1 and then  when i 
call brightset brght is 20 or 255
    if (brght > 0 ) {
                  
    bright = NativeLookup.create(Bright.class);
    bright.brightset(brght);
    }

the app works fine and brightset in the app also
but the behavior is the same when i leave the app and come back to it  
brightness is only changed when i leave the app again
it looks like the brighset method runs on a different thread and runs only 
when the app is not active
i checked  with dialog if the code is fired and it does the Bright class is 
made again


Op maandag 18 november 2019 03:27:52 UTC+1 schreef Shai Almog:
>
> If you just invoke the brightness native interface in the beginning of the 
> start() method in your main class doesn't that work correctly?
> If not I'm not really sure, it's low level native Android behavior I 
> haven't personally touched.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0fca393d-2925-4b22-88fa-40b4dcd0a6d7%40googlegroups.com.

Reply via email to