Android Question Checkbox Logic Reversed?

mpearson

Member
Licensed User
Longtime User
Did something change with checkboxes? I rebuilt an application I've been running for a while and the checkbox logic has reversed. I made the following simple test app to isolate the issue. When you check the box and it enters chkOne_CheckedChange, it logs false. That's backwards, right?

B4X:
Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.

    Private chkOne As CheckBox
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.LoadLayout("Layout1")
   
End Sub

Sub Activity_Resume
   
End Sub

Sub chkOne_CheckedChange(Checked As Boolean)
    Log(chkOne.Checked)
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 

Peter Simpson

Expert
Licensed User
Longtime User
That may be the way to go. It's definitely weird. I'll give it a shot later. Thanks for the help.

Edit: Removing and reinstalling resolved the issue. Thanks for the suggestion.

You're welcome @mpearson,
As I said previously, I always use the latest and greatest files within days of finding out that they are available for download, I've never had issues doing that and I will continue to do so.

Thanks for the update...
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
@Erel


Where I said that behaviour of Checkboxes depends of mavens ?

You didn't say it directly, but reading your response you do appear to imply it. Plus you've posted a few time about Maven Version which has absolutely nothing to do with the original questions asked.

If you have an issue with a particular version of Maven then that's fine, create a post about it and lets get people talking about it. But pushing your personal beliefs onto others especially with incorrect, misleading and irreverent answers really doesn't help anybody.

Yes we all get thing wrong from time to time, but your Maven Version responses do imply issues that do not really exists.
 
Last edited:
Upvote 0
Top