Android Question Screen black when enter in Activty_Pause

Diego Marcelo Croatto

Member
Licensed User
Hi to all ... my current page turn black when I connect a USB scanner to USB port.
The steps in the logger as follow:

** Activity (main) Pause event (activity is not paused). **
Activity Paused <---------Here all my screen turn in black but the program keep working
Reposting event: serial_dataavailable
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
Puerto= 1 Dispositivo= mProductName=USB2.0-Serial <------ Re initialize the serial port connection devices
No de dispositivos= 2 <-----show the number of devices atached
Device= /dev/bus/usb/003/003
Buffer size: 16384
Activity Resume <------ Here in non B4XPages I resolved the screen black with Activity.LoadLayout("screen_balanza")
Activity Focuschanged
Activity Focuschanged

Screen Before USB connect (No Activty_Pause executed)

Screenshot_20210427-193253.png


Screen After USB Connect (Activty_Pause executed)

Screenshot_20210427-193351.png


In other non B4XPages aplication I was solved restarting all include the layout but in the B4XPages mode I cant find how to start the screen newly.
Any can aid me how to restart in B4XPages mode from Main the layout in other page?..... Thank's a Lot.
 
Last edited:

Diego Marcelo Croatto

Member
Licensed User
👏👏👏👏👏 Yes!!...Yes!!!...Yesss!!!!!! ..... It Works!!!! Thank's Erel!!!!!! 👊

And Erel... to know about it... where you take this manifest codes? .... where i learn about it? and ... you B4A system (overall) it's too much easy and friendly its a great tool to work ....you made a great job and the forum it's high class!....
 
Last edited:
Upvote 0
Top